A few days ago I had a similar experience. My Nokia phone running Android 13 called emergency services (112 in Europe) while I was carrying it in my backpack. I can only guess that some other thing was randomly pressing against the power button.
I was not aware this feature exists and certainly did not turn it on myself. It must have been turned on by default.
I was shocked because the phone suddenly started emitting a loud siren sound and then the operator came on speaker asking what the emergency is. All while I was still trying to figure out what the hell is even happening.
I managed to explain that there was no emergency and that my phone apparently made the call automatically. The operator was understanding and I was thinking that it probably wasn't the first call like that they received.