What is the key reason? I mean if you think about it, poles are just something we create to distinct the magnetic field. But they don't exist. Why do magnets attract/repel? Is it because of the dipoles? They want to aline themselves? Btw, are the dipoles in ceramic magnets equally the same dipoles in Neodymium and equally the same with the flow of current in a solenoid?