Zend certified PHP/Magento developer

A switch is usually a layer 2 device and modem is layer 1 device, but the router, which is between both of them, is layer 3

It seems a bit weird to me that the device that is between the devices for layer 1 and layer 2 is the device for a layer that is not in between in the whole communication process.

Is there something that I am not understanding or is it actually like that?