The ‘Anna Selbdritt’ was a common sculptural theme - in fact there was a huge profusion of this combination of St. Anne with the virgin and child in the 1500s.
This sandstone carving is relatively large, and clearly designed for a corner placement.
Tilman Riemenschneider carved several variations on this subject; see also his alabaster and other limewood carvings.