To get right to the point, we don't know the exact reasons . We do know at least a few things though. Let's take a look...
Each individual electron is a magnet with north and south poles, just like a regular magnet you'd stick on the fridge.
Why are electrons magnetic? Here's the quick, honest answer: