Wearing sandals in communal shower areas is recommended to protect your feet against infections that can be transmitted through contact with bacteria, fungi, and viruses that can thrive in warm, moist environments like showers. Sandals can help to prevent your feet from coming into direct contact with the shower floor and can reduce the risk of infections like athlete's foot, toenail fungus, and plantar warts.