Some universities do ask you if you would prefer a quiet or a less quiet flat, and try to match flats by personality this way. I do think this is a good idea, although it's no guarantee of getting on with your flat mates- just because two people enjoy a party lifestyle doesn't automatically mean they're going to be friends, and people who don't enjoy going out can still have very different interests and views. Sometimes, having a mix of personalities can actually make a flat work better as a community.
It would make a lot of extra work for universities when allocating flats and probably have little benefit for students.
Most people do manage to at least be civil with their flat mates, and those that really can't usually ask for a flat transfer.