CentOS used to be a free and open source downstream version of RHEL. Keeping the history short: Red Hat effectively acquired CentOS and discontinued it as a downstream version of RHEL. They turned it into 'CentOS Stream', which is, more or less, a continuously delivered upstream version of RHEL. This isn't acceptable for a large number of the CentOS user base.
One of the original founders of CentOS, Gregory Kurtzer, started Rocky as an alternative. It's basically what CentOS used to be: a free and open source downstream version of RHEL.