when practicing yoga in summer, the soles of the feet often sweat, in order to prevent the soles of the feet from slipping and causing physical damage, the yoga teacher will recommend that students wear yoga socks, thereby increasing the friction with the yoga mat, to avoid slipping.
when practicing yoga in the gym, if the yoga mat is a public yoga mat, in order to be clean and hygienic, it is best to wear yoga socks.