Why is Unity the most popular engine?

You can code in Unreal too. Your argument is invalid.
And unity is introducing nodebased coding currently too, theres even a plugin for it.
There might be a difference in coding overall, unity uses Mono and Unreal C++. But theres is more to that topic.