It is tagged on the building: https://www.openstreetmap.org/way/29421642 - meaning the building itself is the locker.

It should rather be its own node, placed on the building where it's located at, possibly adding level=* and indoor=yes as well. Amenity is a top-level tag: https://wiki.openstreetmap.org/wiki/Key:amenity