As the person who runs one of the largest cloud CI/CD services around, I can tell you exactly how they're making money... Actions.
GitHub would be making a VERY healthy margin on every minute of build time run on their platform, especially considering they don't have to pay a cloud platform for the compute like Gitlab or Bitbucket Pipelines do.