It‘a not that Apple’s batteries are deliberately getting worse, it’s that devices are far more powerful, and all those far more powerful and higher resolution components need more power. Yes, Apple have improved their power usage to performance ratio, but ultimately the device you have now is needs far more power than the device you had ten years ago.
Bar a new battery technology ( the holy grail fir EVs far more that computing devices) you have to accept that computing devices need power, and the more power and higher spec the components, generally the more power they use.
A Mac Studio M3 Ultra will do more damage to your electricity bill than an entry level Mac Mini M4. At the end of the day, physics is physics and physics is real, it still applies even when it’s inconvenient.