As your clothes begin to dry, their molecules heat up and bounce around. The motion leads to static electricity. What is static electricity? As regards clothing, certain fabrics tumble and shake within the dryer and shed electrons; this allows other fabrics to accumulate those free electrons. So some fabrics become positive and some become negative. And, as the saying goes, opposites attract.
Check the inside of your shirts and pants post-dryer for your missing socks. If that doesn’t help, then, yes, your dryer loves to eat socks.
Image Source: Sock Dryer Monster.