It's even worse when you consider that the engines are generally already made, you only need developers to do what you could almost call glorified scripting compared to engine development.
I think Unity and Unreal probably have to pay their devs a reasonable salary. But having devs work in Unity or Unreal to produce a game is not really all that hard. That's kind of the point of Unity and Unreal.