For every action there is an equal and opposite reaction. The rocket pushes gas DOWN; the gas pushes the rocket UP. Swimmers push water back to move forward the same way.