Those gardens in London are privately owned and maintained. And far from ubiquitous - they’re mostly in wealthy areas.
It’s nice that they exist. But it’s not so nice that they’re a perk for the rich and not accessible by an average resident.
And AFAIK, there is no planning rule that requires they be added with new (re-)development. Only maintaining what’s there.