Hi! The tag is needed on ways for the overlay that displays railway operators on OpenRailwayMap.
because they form the main part of the highway, they don't merge into other lanes