Soviet architecture being like that has nothing to do with socialism and everything with authoritarianism. Just like everything else they did.

The equivalent of these people did not live in commie blocks either. The people who did still live in tenements or are straight up homeless.

Communist societies not having a large middle class is a different question though.