In verse 6 this Messenger identified himself as God. He told Moses to remove his shoes because he was standing on holy ground. There's your answer: Moses was standing on holy ground. Taking off one's shoes was and still is a sign of reverence, humility, and respect.