Back in 2018-19, lots of films that wouln't have made that much money made boatloads because they were directly leading up to IW and Endgame. Post-pandemic box office + no Infinity War-tier crossover looming for some time + lead actor passing between films = recipe for lower box office than some other Phase 3 films. This film did pretty well all things considered.