Newton’s Third Law states that for every action, there is an equal and opposite reaction. When you push on something, it pushes back with the same force. A simple example is jumping off a boat: you move forward while the boat moves backward.
Rocket propulsion works the same way—the rocket pushes gases downward, and the gases push the rocket up. This law applies to all kinds of motion, from walking to flying