The government has always acted in its own interests. Perhaps they have realised that releasing software as OSS suits their purposes.
People have always acted in their own interests. A good government (one that is of and by the people) acting in its own interest is acting in your interest as well.
Not saying this is always the case, but it does happen. Using your money to develop software that is licensed for you to use freely is a good example.