Address labelling is purely client side wallet feature, has nothing to do with Bitcoin itself and can be implemented in different ways, depends from a wallet to wallet.
For migrating address labels between wallets there is SLIP-0015 by Trezor and BIP 329 proposal, but there isn't widespread support for these standards currently.
Trezor
reply