Originally, the parking lamps were only legally used if you were parking/standing-still. On two-lane roads, it was a way for someone to pull over to the side of the road at night and let cars coming in either direction know that you were on the side, but you were not moving.

modern use of parking lamps

another explanation of parking lamps