It’s because people do not know the Touch ID sensor is a power button.
That’s why Apple designed it to turn on when keyboard is pressed
I have several family members with Apple Silicon MacBooks. And because most of them just close the lid and never really turn it off and shut it down, they forget that the Touch ID key also works as a power button, and that going to the "Apple menu" and choosing "Shut Down" is even a thing.
I have to assume that this is a deliberate choice and not a technical limitation, as I know iPads and iPhones won't automatically turn on by pressing any button except the power button.
It's worth noting that Apple's documentation on cleaning does state you need to remove all power sources and shut down the Mac if you want to wipe any part of it with a damp cleaning cloth.
But no mention on how you're supposed to wipe the keys and avoid turning it on simultaneously.
My best "solution" for OP's issue, without installing a third party app or resorting to a Terminal command, would be to run down the battery completely and then clean the keyboard while it's off and has no power to auto-boot.
But, like on an iPhone or iPad, there's probably always enough power left that it would keep powering on to show you the "needs to be charged" warning screen. You would have to leave it off for several hours or days until it's completely drained, I guess.
I don't know if that's a good idea even if doable.
But this is definitely dumb if there's no native fix.
🤷♂️