Typically, if a player has a lot of experience on the server and many punishments throughout their playtime, a longer ban will be issued under the expectation that they know better.
As you’ve mentioned yourself however, ban lengths are up to the discretion of the staff member issuing the ban...