Geometry matters. My 2020 35lb enduro bike with 170/160mm travel climbs at least as well than my 2002 28lb XC bike with 125/115mm travel. That's with a frontend that is almost 5 degrees slacker and probably 100mm longer reach. And flat pedals.
Been riding since 1988...bikes are absolutely better now than they've ever been.
(2) bikes are way longer than they used to be with much slacker head tube angles. this allows you to keep more traction on the uphills in a seated position; standing (which was always less efficient) is not required as much.
Of course, you have to get used to this position, which is markedly different to the road bike / track bike leaning ahead and closing your hip position. It also gives you great front-back balance and easier control on your bike. Easier to jump (or just shift weight), and you have the wide bars for greater leverage.
Seriously, if someone has not tried a MTB with a modern geometry, they definitely should, they will be blown away by how much better it is than the old ages. Add to this the dropper seatpost, and you have a winner!
Older geometry frames tended to pop the front wheel, if the rider remained seated and wasn't using bar ends (or just leaning really far forward).
Modern frames are longer overall, with wider bars, so the balance point feels longer and it's easier to remain seated without lifting the front wheel.
Seated climbing is better when possible - the rear suspension can help provide traction, rider just needs to provide the engine.