Wearing socks for longer periods gives room for bacterial growth and moisture accumulation because of sweat, leading to bad odour.