Except elasticsearch was created before the company Elastic even existed. They couldn’t have released it as closed source because they weren’t there to release it at all.
It was written by one guy and it was based on previous open source code in Lucene.
I am ok with them making money off their project, but it isn’t like they are owed a billion dollar company for their work.