Well there are other compilers people are paid to write, eg oracle and IBM have java (JIT) compilers. There are also JavaScript compilers in vms.
Plenty of companies can have internal languages which need to be compiled. One would be Facebook with hack but in a normal company it isn’t totally improbable to go from “we need to configure some rules” to “we need to add more features to our rule language” to “we need to run our rules faster” to “oops we are now making a compiler.” And there are specialised consultancies to help with these compilers.
However I think GP was really alluding to working on programs that aren’t really anything to do with databases rather than writing compilers specifically