Rockets consist of several stages. Two or more smaller rockets are combined into a single rocket. They are ignited in order; when an earlier stage runs out of propellants, it is jettisoned to reduce the load for the rest of the rocket.
Flat-Earthers noticed videos of rockets being recovered from the ocean and use them as “evidence” rockets never went to space. In reality, these are the jettisoned earlier stages of the rockets. The latter stages do reach space.