On balance, I think YANBU, but that's not without reservation.
I don't agree with posters who have compared this with public services and amenities like roads and the NHS, where not everyone contributes, but all my benefit. This is a private facility which certain tenants pay for and others don't. I don't think the higher payments the private tenants and owners make, should effectively be "redistributed" to cover those who don't pay for that facility. And I think the developers knew that that would put off prospective purchasers, who were looking to buy a property, but not necessarily to contribute to a social fund.
What makes me uncomfortable is that this arrangement, whilst not objectively unreasonable, leaves some children tantalised by a playground they can see but not use. It also highlights the unpalatable truths about the current planning practice of requiring new private developments to include social housing. There is so often (I know, not always) a marked difference in wealth, background and lifestyle between the types of occupant, particularly in London, where you have to be objectively wealthy to buy this sort of property.
Unfortunately, I don't think some posters views that the doors of the expensive garden should be thrown open to all is realistic. It should perhaps be enacted that mixed developments should have no outdoor facilities which are not available to all occupants. The probable result would be that gardens would not be included in future buildings.