>>11917945spin = reacts with surrounding EM field
Spinning was a first guess, but since the spinning would have to be faster than the speed of light, now it's just thought as a fundamental thing like electrical charge or mass. No one really knows where this basic magnetic momentum comes from.