I have had this issue intermittently for years, first on my 2017 iMac. When they are functioning correctly, they should drain 1-3% per day, depending on use. I have a battery level tracking spreadsheet, and devote way too much attention to this.
Until Monterey, it was possible to option-click on the Bluetooth menu, and “reset module” and also “reset Apple devices to factory settings.” This would typically help.
The issue is now happening on my MacBook Pro M2, which I use at home in “clamshell” mode. For most of the fall, while on Ventura, it was limited to the Magic Trackpad. I deleted a series of Library files while in Safe Mode, and thought that had resolved it, though it may have been the recent Ventura update. However, I updated to Sonoma (14.2) three nights ago, and the issue is now back on both my Magic Trackpad and Magic Keyboard. They drained 5-10% last night after being “forgotten” and while the MacBook was completely shut down!
Some further digging, especially on MacRumors, and I get the sense this is a sleep, issue. This
MacRumors thread is especially helpful…I can’t follow all of it exactly, but may end up copying and pasting some of the Terminal commands posted by others there. In addition, I found this app, Sleep Aid, which is proving very helpful. (Thanks to Eclectic Light Company for posting about it over a year ago.)
https://ohanaware.com/sleepaid/
I will try a clean install when I have time, and am realizing it is probably best in the future to wait until late spring to upgrade. Apple’s software quality being what it is these days. Meanwhile, I hope this helps others.