Of course, people can work on whatever they like on their free time. The developer in case chooses to abandon his open-source projects to work for a company of his choice. Nobody forced him to take this job, it was his choice.
This is so reductionist that it's blind to reality.