Unlocking the bootloader is step 1 in rooting the device (usually) and is absolutely required to install an alternate OS (like grapheneOS)
And yeah majority of phones simply won't let you do that anymore