Most of the public toilet doors don't touch the ground. One of the reasons is for people to see if a restroom is available. It makes access earlier in case of medical and other emergencies. It allows security to keep a check on undesirable behaviour. It allows better air circulation and makes it easier for janitors to clean the stalls.