Each atom in a solid has a magnetic field generated by its electrons as they spin. If these spins all align then the solid becomes magnetic at the bulk everyday level. Usually they do not align and the magnetic field of individual atoms cancel each other out. 