The reason is that Fedora by default signs you in to GNOME on Wayland, which forbids running GUIs as root for security reasons. The preferred alternative is to run whatever needs root in a separate daemon and have the GUI communicate with that via an authentication framework known as polkit.
In this case, GNOME provides gvfs-admin, a virtual filesystem for securely accessing directory structures as administrator. If you prefix any path in Nautilus with
admin://, it will communicate with gvfs-admin to access that location. For example, to access /etc as root in Nautilus, you can run
nautilus admin:///etc. This also works with gedit; you can do stuff like
gedit admin:///etc/resolv.conf to edit the given file as root.