Don't be put off from writing your own engine, but it is quite a daunting task, expecially for 3D.
Besides rendering, these off the shelf engines provide tooling that make game development easier on you. Map editing, animation editing, sound editing etc all built in.