Affordable high density housing used to comprise about half of all housing built in the UK. Then almost all constuction of it was halted.
The private sector never built any of it. NIMBYs didnt stop this construction. Ideologues whinging about the % of GDP spent by the public sector did.
NIMBYs are just a side effect of the world neoliberals created.