That is a very simplistic, and incorrect, response to the problem.
GitHub provides computing resources, for free, to attract users. This is just one of the challenges of that business model. If this is intolerable for GitHub then it's up to them to find a strategy to counter it.
We don't need to ask the government to punish everyone participating in cryptocurrency.
Don't imagine that GitHub cares about lowering barriers to entry as an end in itself.
It does this as a means to pursue GitHub's business interests.