There is almost certainly a switch that is
attached to the brake pedal that allows for the gear shift to be
released when the brake is pushed and will not let it out of gear if
the brake is not being pressed. This is a safety feature that was
mandated for all automatic vehicles in the early 1990s.
Gerald Wheelus
Edgewood Auto Parts #253, Edgewood, Texas