Earbuds are the universe's way of checking if you're actually awake yet.
You could roll them up like a professional audio technician. You could use a fancy case. You could store them in a vault under armed guard. Doesn't matter. The second you reach into your pocket or bag, they've transformed into some kind of impossible puzzle that would make a sailor weep.
Scientists call it "spontaneous knotting" and blame it on random movement and probability. Cool story. But here's what's really happening: the universe is testing your patience before you've had coffee.