In the Ant-Man films, Hank Pym explains that the suit doesn’t just compress atoms; it reduces the "distance between atoms." This is based on a fictional (but brilliant) theory: Pym Particles shunt mass into a pocket dimension (the Quantum Realm) while keeping the user’s strength density intact.
In Ant-Man and the Wasp , we learn the Realm operates under different rules of time and space. Janet returns with strange healing powers and a warning about "time vortices."