"When NASA chose Dragonfly in 2019, the mission had a cost cap of $850 million ($1 billion when adjusted for inflation) to get it to the launch pad. The budget limit didn't include the launch or costs to operate the Dragonfly spacecraft after launch. The costs originally under the budget cap have increased the $1 billion post-inflation figure to $2.1 billion, according to NASA."
Unfortunately, some industries experience much more inflation than others.