The mechanical parking lock secures the vehicle against rolling away.
When the vehicle is stationary it is engaged purely mechanically via the selector lever when the selector lever position "P" is engaged.
Accordingly, the differential is blocked via the intermediate shaft, and the vehicle is secured and cannot roll away.
Вот так! Век живи, век учись.