Why are you asked to remove FOOTWEAR outside TEMPLES?

Why do temples require us to remove our FOOTWEAR, is it just simple hygiene or is there more to it. Take a look at this video to know more.