When you’re on a call, you can hang up the phone by pressing the Side button on your iOS device. This button is also called as sleep/wake up or lock button.
The devices and iOS are specifically designed the way that pressing the power button while on a call will immediately disconnects the call.