There’s precedent too, in 2016 Namecheap suspended Openload's domain because of DMCA reports against the domain (they later reinstated it tho).
And Codeberg has removed malware that Microsoft & Google refused to remove for obscure reasons, so this makes no sense.
That certainly doesn't mean that other companies shouldn't be held accountable if they fail to prevent and remove phishing and malware from their platforms however. Codeberg has a history of being abused by scammers and hackers. If they have repeatedly failed to prevent that or refused to act on those issues in a timely manner their registrar's abuse team would be correct in suspending their domain until they got their shit together.