Some renderers don't render paths correctly without that tag. Also, layer tag has nothing to do with building level, it's used to describe vertical relationships between crossing or overlapping features. https://wiki.openstreetmap.org/wiki/Key:layer