Answer
It comes at the expense of the bowling ball’s kinetic energy.
Work Step by Step
The ping-pong ball carries some momentum toward the right, which means that the bowling ball slowed down ever so slightly. The bowling ball lost some kinetic energy, which was transferred to the smaller ball. Assuming the collision was elastic, the total kinetic energy stays the same – the ping-pong ball didn’t magically gain kinetic energy.