It's still myopic to say everything Amazon does is for the greenback. Engineers at Amazon likely pushed for OpenSearch because it provides personal growth to work on open products. Working on closed source may mean you can't bring as much knowledge to another job. It's likely less people will use your work and that may be less satisfying. You may like to switch jobs for reasons other than money. And to retain employees, Amazon may agree to allow employees work on open source.