It's the way the lift is programmed. For example, a lift comes
down from let's say nTh floor.
It will reach floor one and open it's doors.
or,
when both lifts are on the first floor, someone on the 5th floor
press 5, one lift goes up the other opens the door.