I think they should do 'ok' though it won't make you wealthy:
- They collect money from businesses (who pay quite well)
- They collect money from private repos (like I have for lots of my config files, no, no passwords/keys in there ;) for e.g. tex files.
- The large companies probably pay some form of 'support'