Toyota have an interlock mechanism, either the conditions have not
been met or the lock bit has failed.
Some are electronic, some manual with a button near the lock. Electronic require it to be in park for instance, so there may be a gear lever mounted switch.