The flat in question is a Peabody property - not publically funded social housing, but a private charitable provider. They will own the property, which will add capital appreciation to their funds. Who they choose to let their properties to is up to them, within the terms of their charitable aims.
If you asked people on the street ‘should luxury flats worth at least a million be given out as social housing’, virtually 100% would say no