Them having money is unrelated to them being a registered association. They are a registered association, and they have enough money from membership fees.
Looking at their annual budget, they estimated to get around €75k/year from membership fees and €50k from donations in 2026. Not even enough to pay for all their day-to-day operational costs, so they expected to use up some financial reserves to compensate.
MarkMonitor has minimal spend around 10k USD per year. (You pay per domain, but you have a minimal spend.)
This is from some forum from 2014.
Of course Codeberg is more than that, but it does not mean they're rich. If they have non-profit status, they are also required to not waste money, and the German tax authorities occasionally audit that (since they hand out non-profit status).
(Source: I've registered two BGB §21 associations, both non-profit, and one BGB §22 association.)