There is an interlock circuit that goes between the parking brake & the lap bars so you can not try & drive away with the brake on
I don't have the wiring diagram for your mower
Some times it is a simple loop & other times it is done with a relay.
In any case the mower is shutting down to protect the brake.