For private code, it just feels safer to self host that -- ideally behind wireguard for an extra layer of security.
For public code hosting, GitHub have banned too many people/projects for comfort. From security researchers to 18+ game devs, too many have been wrongfully banned.