how do cats even do this
Cats are actually 90% spring, which is near constantly compressed.
They normally have perfect control over how much of its energy they release for their jumps.
But if you really surprise them they lose control and the entire spring releases, rocketing them up into the air.