One of the biggest reasons of leaving footwear outside the temple before entering is hygiene. Removing our shoes and sandals prevents us from carrying any kind of dirt, impurities and germs into a clean and germ-free area such as a temple. Having said that, the primary reason behind this is that the floor of temples are built in materials that are good conductors of positive energy, allowing these vibrations and energy to pass through our feet into the body.