In most cases they weren't that bad, the population wasn't high enough for it to get too dirty and most people had plenty of living space. Only in later era do cities become dirty and extremely overpopulated. The exception would be sieges, but in them all people would suffer to some extent.