From my experience UE4 just has more prescripted toggles which easily allow you to achieve beautiful games. All of this is possible in Unity but its not enabled in default settings and developers need to do more of the work themselves. Unreal has always had more resources and a much longer history which is why it's more feature rich and build around achieving AAA visuals.
Unity started as a free/accessible indie engine 10 years after UE debuted. UE4 has only been indie friendly since 2013 & free since 2014. The goal of unity wasn't originally beautiful AAA games but ease of access & use. It really helped shape the mobile and indie market.







