Why isn't the actual command line on the Alma setup page?

Hello, getting back into linux after a long hiatus, used to use rpm, then yum, but now it looks like dnf and never heard of flatpak. Chose Alma since I didn’t feel like figuring out how to go from my ancient CentOS to CentOS Streams, so I look at the setup page for Alma, and it says

Just download and install the Flathub repository file.

But that isn’t what I’m really supposed to do, is it? Clicked on the link, saved the file, and then got a bunch of errors from dnf and flatpak itself when I try to install the downloaded file. A search leads me to the flatpak reddit where it says that the thing to do is

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

So my question is why isn’t the above on the Alma setup page instead?

If you’re using GNOME or KDE, opening the flatpakrepo file should’ve opened it in the respective software app to allow you to add the repository in an UI.

So, the question is what you exactly tried when you mean “installing the downloaded file”.
Installing the file with dnf won’t work, as dnf doesn’t really know a thing about Flatpak. And flatpak install expects you to install a app. Apart from that, if you want to use a flatpakref or flatpakrepo in an flatpak command, you need to add the --from argument to note its a file to reference.

Anyway, the command you mentioned is present on other distribution as an “if above does not work”, so adding it to the instructions for Alma Linux should be reasonable.
You could consider opening an issue about this on the website repository.