Joey, you know “linux” distribution are a collection of software.
Software needs some libraries to be installed and in the same time those libraries are shared among different software.
So maintainers who create “packages” need to test them against some set of “default libraries”, including the exact version of each library and the software that extract programs from “packages” needs to check that the program has got all the needed libraries installed.
All this merry go round is called “dependencies”, meaning software depends on other software.
RPM is a format for packages.
DNF is one of the package managers, search, install, remove, where install means several operations like “check dependencies”, “extract”, “place files here and there”, “write configuration files”, etc.
This is how “linux” has been working since ever.
Lately some people thought it would be nice to have packages that come with all the needed libraries so you don’t have to worry about “dependencies” and you can separate those software from the system (since nothing is shared).
Those are flatpaks or snaps or appimages.
They are different but the general idea is the same.
Now I wrote the advantages, a flatpak goes everywhere, doesn’t care of what version of Fedora you are running. There are two disadvantages, one is bloat, because each single flatpak comes with its own stuff regardless what is already installed so you get multiple copies of the same files. The other disadvantage is some software may expect to access any part of the system and to find some resource there. Since those packages are meant to be self-contained and sandboxed, so they don’t need to and they should not access the system, sometimes the software doesn’t work as expected.
There is also a philosophical issue. Self contained packages are meant to be distributed from “stores” that are like repositories which are external to the distribution. In other words, there isn’t a maintainer who should be trusted, you must trust who ever places the package in the “store”. Exactly the same as browser extensions.