Nothing. They will exist as long as the instance exists.
You can appoint a new mod yourself before leaving, or your own account from a different instance. But if you are the only mod when you delete the account then yes. Instance admins can still apoint someone else though.
How do you appoint new mods though? I don’t see a menu to moderate the communities I created.