It means to play very hard and without reservation. So, a person who "plays his socks off" put 100% of his energy into the game, and has no energy left after the game.
For some reason, English has a lot of idioms about losing one's socks.
- "knock socks off" (big surprise, or a brutal beating)
- "scare socks off" (big scare)
- "work socks off" (work really hard)
These idioms do not make any sense. It's just something that we say.