A Fediverse account only lets you log in on the server where you signed up.
However, your server communicates with other servers, which lets you interact with accounts, threads and groups across the Fediverse.
Running your own instance lets you choose which other servers you federate with, what the rules are, who gets banned etc.