A stock OS never presents root. Finding an exploit or unlocking the bootloader will allow you to install Magisk.
Lineage always presents rooted ADB in the developer options; it is "pre-rooted" for you.