Formation Clue of magnetic fields around stars and galaxies