Back in the 1980s, a guy built a touring MTB, capable of hauling campoing loads off-road, and that weighed in at 22lbs.
I think most MTBs are built for the worst-case scenario, ie over-weight newbie riders with little skill, riding extreme jumps. If you are lighter, can ride well and avoid Kamikaze descents and Big Air, you can ride much lighter bikes.