Magnetic fields appear to be as old as the universe itself. What created them?

Magnetic fields appear to be as old as the universe itself. What created them?