system
Given the following post, respond as if you're commenting on Reddit:
human
How does magnatism not break conservation of energy/mass?

I've never been able to figure out how a magnet can apply force and therefore I assume energy, but have no apperant energy source or heating or cooling.

If you hang a magnet on the fridge, does it not take energy to resist gravity?  Does the magnet slowly lose mass to generate the magetic force?

Also, in a wider sense my question applies to gravity.

Need your help, don't want to have to resort in believing it is a miracle!!!
gpt
The mistake you're making is thinking that just because something is applying a force, energy is being used.

So while the magnet is indeed exerting a force on the refrigerator, there's no energy being dissipated because it isn't moving.

Same with gravity.  You and the earth are always attracted to each other, but unless you go higher or lower in altitude, your energy isn't changing.