Why does a bouncy ball bounce in spite of gravity?

Gravity makes it return to the ground eventually. The bouncing is cause by the elasticity of the ball. Energy of motion compresses the ball, and it re-expands and pushes itself off the ground.

because of the force caused by you bouncing it