Because it was forbidden by law. You were forced to be put in an institution or directly went to prison. Check Section 249 of the DDR Criminal Code.
And by the way, the DDR suffered from chronic housing shortage. People were cramped in barracks with not bathroom and no heating. Technically housed but in actually povert level of housing. It was an absolute disaster.