Sure, Github can lose data. And you can lose data. But the advantage is that you and Github are much less
correlated; the odds that both of you will lose the data at the same time are fairly low. [1]
Data safety is all about fighting correlation. You don't back up one partition to another on the same spindle, because when the drive dies the whole spindle is lost. Paranoid people back up to two different drives, two different disk controllers, two different machines, two different datacenters, two different continents...
---
[1] But nonzero. It is worth thinking about the scenarios.