MLB teams play so many games because baseball in general is a non-contact activity sport, and that is the reason which allows its players to play more than any other sport.
Moreover, baseball is quite a hard-to-play sport for players to stay consistent, which means that a lot of games need to be played by the players to determine which players and teams perform the best.