Why is Unity the most popular engine?

Unity is popular due to being modular, fast and easy to pick up, C# etc

Hence why only in Unity you’ll find custom shaders, different GI lighting methods and so much more,
so having source access to UE4 means nothing if the engine is not flexible.