You aren't required to remove your shoes until you get the the security screening line, and even there, certain exceptions are allowed, such as TSA PreCheck. They check for weapons and possible explosives. Richard Reid, aka the shoe bomber, tried to light an explosive hidden in his shoe on a flight to the US.