If a company decides to open source a project that is not directly related to their business, then they are gaining an advantage - now their code can be vetted and improved by the open source community and they can spend less engineering time on the project themselves while they focus on their real business.