They are layer 3 protocols
That a routing protocol runs over particular transport mechanism does not mean that the routing protocol is of layer (N+1) if the transport mechanism is of layer (N). Routing protocols, according to the OSI_Routing_framework, are layer management protocols for the network layer, regardless of their transport mechanism.