Nobody can predict which movies are going to be hits. While there are always factors that help a film's chances (such as being part of a pre-established franchise such as the MCU), other successes seemingly come out of nowhere, such as the recent massive financial haul for Top Gun: Maverick. Studios try their best to green-light movies they think provide the best chance of positive box office results, but sometimes it does not go to plan.