It’s tricky to implement though. Unfortunately ActivityPub didn’t really consider account transfers as part of the initial protocol design.
Federating user accounts gets into difficulty with GDPR and similar privacy laws that make it challenging to do right and legally in all jurisdictions.