Could someone have installed a ROM virus on my Xperia XA?
If the settings say that bootloader unlocking is not allowed, it is impossible to unlock the bootloader, even if you wanted to. If you want to make extra sure your device is not compromised, dial *#*#7378423#*#*, go 'Service Test', 'Security' and check if all lines say [Key Ok].