In orbit, objects are weightless because both the objects and the spacecraft have the same speed and direction, and both are affected by the same gravitational influence. We use the spacecraft as the frame of reference. Because the objects are not in motion relative to the spacecraft, they appear to float.
In Earth orbit, the objects are still affected by Earth’s gravity, but yet they float. Flat-Earthers use it to disprove spaceflight. In reality, the objects float because we are using the spacecraft as the frame of reference, which is also moving by the same amount and is affected by the same gravity as the objects themselves.