Why does the Norwegian navy have barcodes on the side of their ships?

So when they come into port, they can scan-da-navy-in