How do miners earn money?

The miners are responsible for successfully finding out the new block in the market and, along with that, new or fresh crypto.

As per the guidelines discussed on May 11, 2020, you will get around 6.25 of the newly mined Bitcoin.

You can check out this thing from the recentcoin website.