I remember reading an interview with a well known person in the 3D and gaming industry in a gaming magazine well over a decade ago. I can barley recall the details but one thing that stuck out was the interviewer asked why couldn't the game engine be the API giving the developers higher level tools instead of OpenGL or direct 3d, as well as audio, input and others. The answer was that game engines were too focused and not flexible enough to be used as a kitted API.
Fast forward to today and that is exactly what Unreal and Unity have achieved. They built game engines that are flexible enough to be complete tool kits to build other games. Interesting to see how far we have progressed.