While you may never have pondered the similarity between a common bar magnet and a star, astronomers do, and they believe they have figure out why the two disparate bodies are sometimes strikingly similar.Magnetic activity on many stars, such as our Sun, varies a lot over days, weeks and years.