Boo-hoo they lose a little bit of the millions they make back from sales at the cost of making good games.The downside is that any publisher or developer that uses Unreal 5, has to split the profits with Epic and give them a small percentage for using their engine. Capcom gets 100% of the profit since everything is on their own engine. Even the new Ghosts And Goblins and Mega Man 11 ran on the RE engine. Capcom pretty much didn't want to deal with the Unreal Engine again after using Unreal 3 in the 360 era, and Unreal 4 for Street Fighter 5.
I suppose the lesson to be learnt there is, if you gonna make your own engine then it better be fucking good.