To know the answer to the above question we need to know about terminal velocity.
When any object starts falling, its velocity is zero at starting point hence it does not experience any viscous force nor any Upthrust force. The only force working downward direction is the force due to Earth’s gravity(mg). As the object gets some velocity, Upthrust, and viscous force start acting opposite to the direction of force due to gravity (weight of the object). There is a continuous change in velocity when an object falls down and it experiences acceleration. Once weight becomes equal to the combination of viscous force and upthrust acceleration becomes zero, now the object will fall with constant velocity. This velocity is known as terminal velocity.
Now coming to the question, Ants are very small, and their terminal velocity (the maximum speed they reach when falling) is very low. This means that they don't experience as much force when they hit the ground as a larger object would. In fact, the terminal velocity of an ant is only about 6.4 kilometers per hour, which is about the same speed as a falling leaf. While for a human being terminal velocity reaches 200 km/hr.
In addition to their low terminal velocity, ants also expand their six legs which help to protect them from impact. This means that they are very unlikely to be injured or killed when they fall from a high building.