Because having too many companies on a resume prevents a person from being employable
If you have 3 18-24 month stints (and ideally earned a promotion at any company [rather than only on a company change]), and a couple of shorter ones, it's fine.
People are overly worried about the second case, IMO. If you're at a company that sucks, the very best thing you can do is change companies.