While unfortunate, malware injection in Github has been fairly common and the short excerpt from
https://medium.com/@newyorkcoin/timeline-analysis-and-response-to-recent-51-attack-941da50d625c explains what went down:
On October 30th, the Community Development Team discovered these infected wallet releases and quickly started to investigate. During the investigation, two major flaws in the general security of GitHub were discovered.
The first flaw was that any account within the organization can access any of the wallet release assets, even for repositories for which they do not have permissions. The second flaw was that all changes after the initial publish event of the wallet releases are silent and dont trigger the GitHub web hook notifications. All changes made by members of the NYC GitHub Organization trigger an email and Discord notification, except changes in the wallet releases, which are arguably for a cryptocurrency the most important changes for requiring notifications. The team was able to identify the account used to change the wallet releases, and unfortunately, it was the GitHub account of a former community contributor who didnt know about the compromised account.
Trying to explain open source, github and blockchain to you is like trying to explain orbital mechanics to a flat-earther.