Why do clothes stick together in the dryer?

Tumbling fabrics rub and build static electricity that makes socks cling together.