They are together in stores because stores, to remain profitable, have to minimize space per animal to maximize the number of total animals availalbe, in order to maximize sales.

The stores generally think that it is alright for them to keep them together since hopefully they will be sold fast. But it still isn't good for the snakes.