I think it's perfectly legitimate for a company to build those things when it's not their core business, provided that A. They hire people who are legitimate experts and give them free reign to work on it, and B. They open-source it.
A lot of quality compilers and databases have come from software companies whose primary business is neither a compiler nor a database.
A lot of quality compilers and databases have come from software companies whose primary business is neither a compiler nor a database.