I’ve seen some comments about how “gitlab bad” or whatnot, why do people prefer Codeberg over GitLab?
You are comparing GitLab (the application) with codeberg.org (the website operated by the codeberg e.V. non-profit). A fair comparison would be gitlab.com (the website operated by GitLab Inc.) with codeberg.org or GitLab (Community Edition or Enterprise Edition) with Forgejo (the application powering codeberg.org). They can be fully self-hosted and are both planning to implement AcivityPub-based federation.
Forgejo is working on federation since November 2022.
I trust them, but I just want to have it by myself.
You do realise you can selfhost Forgejo and you do realise Git is actually distributed? You can easily mirror repositories on multiple instances or even your home computer.