All dynamic speaker drivers utilize a magnetic field to function. This is why earbuds will attach to one another when placed close to each other.