There is no such thing as a "Mexican jumping bean." The "beans" that jump are actually seed capsules of the shrub Sebastiania pavoniana (family Euphorbiaceae), native to the deserts of northwestern Mexico (Sonora, Sinaloa, Chihuahua).
A tiny moth, Cydia deshaisiana (the jumping bean moth), lays eggs on the shrub's flowers. When larvae hatch, they bore into the developing seed capsules. Inside, the larva:
The larva may live inside for months, eventually pupating and cutting an exit hole to emerge as a moth.
No. The seed capsule is a hard, woody structure with a tiny micropyle (pore) for gas exchange. It is not watertight, but the larva inside is adapted to low oxygen and can survive brief submersion. However, prolonged soaking kills the larva—and the "bean" stops jumping. The capsule itself is a seed; it doesn't breathe or drown.
So: they're seeds with a moth inside. They jump to survive heat. They don't drown—they desiccate or overheat.