The thing with Unreal is that it doesn’t really even have to be very profitable. Epic would need a game engine of their own anyway. As long as their own games that use it make money, everything else is just extra gravy.
Unity’s only revenue streams are their game engine and their advertising platform.
Edit: I forgot they also have an asset store.