As for oil, its price is largely driven by geopolitics, not inflation. In April 2020 prices were all the way down to below $20 a barrel. [2]
Also, those missions needed a capsule not just the rocket and more importantly a great deal of R&D.
PS: April 2020 prices were due to drastic decreases in demand due to the pandemic not politics. Many current oil ‘wells’ ie oil sands lose money at even 60$/barrel therefore the market price needs to be higher than that or supply is reduced.
Put another way, these guys were being treated like a glorified version of Laika [2], and they knew it. It was all about achieving the mission goal as quickly and cheaply as possible. Everything else was secondary. This sort of stuff wouldn't pass muster in a million years in modern times, which again gets back to the original topic.
[1] - https://en.wikipedia.org/wiki/Project_Mercury#Pilot_accommod...
Which seems insane by modern standards, Mercury however wasn’t quite that efficient, manpower costs for example have risen faster than inflation. Which makes a huge difference for non automated tasks like building novel spacecraft.
Similarly a barrel of oil in 1969 was $3.09 or 25$ today vs the actual price of 82$ today.