The question here is - is the cost difference of a shared bathroom versus a private bathroom the (or a) major factor in not building affordable housing and the answer is almost certainly no. If it's not, then this is just elitistic moralizing from the ivory tower.
Happy to be proven wrong by the way. (non-sarcastic)