This etymology reflects the original purpose of corridors: they were designed as spaces for running.
In ancient Roman architecture, corridors were often used for fast movement within large buildings like baths or palaces. They served as efficient pathways for people to get from one area to another, hence the connection to running.
Over time, the word "corridor" evolved and became more general, encompassing any long, narrow passageway within a building, regardless of its primary function.