Why Are Only Certain Materials Magnetic