Another thing that can happen with snakes is that they just "oops, made a mistake". Think about snakes that have hair-trigger responses to acquire prey, now try to imagine them falling asleep in the same enclosure as one another (& all creatures do need sleep): what happens when one of them decides to move around?
We're talking about 2 snakes that appeared to be fully compatible non-hostile room-mates, but I can tell you from personal knowledge that what happened with a pair of sidewinders is that when one moved, the other responded instinctively & nailed "the motion" right in the head, killing it very quickly.This had nothing to do with appetite, just the survival instincts to "bite first, ask questions later".
Nearby motion can either be food or a threat, & either way, survivors bite. Oops. If this had been non-venomous constrictors, the bite may "only" have injured but not killed so immediately & irreversibly, but even bites have consequences- blinding eyes, causing infections, etc. Co-habbing snakes is seldom worth the risk if you truly care about the snakes you're keeping.