Question: are bugs attracted to sweat?
Answer: Remember how bugs are attracted by sweat and body heat? Closed shoes and socks are full of sweat and tend to be really hot, so they make you more attractive to a lot of bugs, including mosquitoes.