If atoms lose , they become more organized.
When energy is removed from a given amount of atoms, they enter a more organized state because their attractive forces overcome their repulsive forces, which causes them to come closer. This is observed when a gas is condensed to a liquid, and then also when a liquid freezes into a solid. This moving closer also limits the motion of the particles.