Hello. This part of the tram line is considered as light railway, which is regulated by railway act, and uses railway level crossing signals rather than normal traffic lights on level crossings. Therefore "railway=level_crossing" is correct tag in this scenario. See https://wiki.openstreetmap.org/wiki/Tag:railway=tram%20level%20crossing for more information.