why does the gear shift lock not work when the break pressure fades on 1996 Toyota 4Runner

when stepping on the peddle to take it out of park?

Asked by for the 1996 Toyota 4Runner
Sounds like a safety mechanism. Toyota was GREAT for safety once upon a time. Probably need to get that brake pressure problem fixed before an accident happens.