The priciest games are rarely expensive because of their box price. They are expensive to make. A modern blockbuster can involve hundreds of staff across several studios, years of development, licensed engines, motion capture, voice talent, and a marketing budget that rivals the production cost.
Crowdfunded space simulators are the classic example of a project whose budget kept climbing as features were added stretch-goal by stretch-goal. Long-running online games are another, since the cost does not stop at launch: servers, live content, and support continue for as long as the game runs.
At the other end of the scale, small teams ship remarkable games for a fraction of that money, which is why the most expensive game is almost never the one critics rate highest.