Non-profits and charities also create software but it's like verifying a scientific experiment: doesn't matter who did it first if we can verify their results.
Sadly, bad incentives trend politicians to appeal to just select groups needed to win. Many countries use unrepresentative voting systems which trend to a 2 party system, permits jerrymandering, etc. What can I do about my government?
At least I can try to avoid proprietary software - if I needed a car I would look for one which comes with open source software, or buy a dumb while I still can.