Gravity. Same as how space probes gain energy from a planet when they "slingshot" past. But this is two planets closer in mass/speed so the energy transfer is less profound.
Gravitational waves from planets are undetectably small. They do it through gravity directly, as sandworm101 says. You can model it with pure Newtonian gravity and get resonance effects just fine.