Why is Unity the most popular engine?

But the thing about the unreal engine is that there are many types of games that I don’t know if they would be easy to make with the unreal engine. Let’s say for example that you wanted to create a 4x game like Civ. Is Unreal really better suited for this than something like Unity? Isn’t both Endless Space as well as Endless Legend both made using Unity?