The UK had this system (council housing) and then basically dismantled it in the 80s. Then imposed some even more stupid rules. https://www.bbc.co.uk/news/uk-41324305
It hasn't been dismantled. In fact, 20% of the private rental market is supported by the government.
All that happened is that councils stopped building homes and sold some of the ones they had to current occupants (and councils actually also have control over planning permission, so they did this and blocked anyone from building new houses at all).
There is other stuff going on (it is likely impossible for the UK to build enough housing given demographic trends atm) but this is all caused by not building enough houses (the reason why investors are buying houses in Canada is because there aren't enough of them, it is all the same problem).
Woking council managed to make some terrible investments and is now bankrupt: https://www.bbc.co.uk/news/uk-england-surrey-65920223