'Shame' as used here is shorthand for 'that's a shame,' which used colloquially to express disappointment colored with sympathy and understanding, does not imply that any of the nominal subjects is being criticized.
Source: I'm a native English speaker.