That sort of ban happens either when people avoid less forceful bans in some way or when there are DDoS attacks from a given IP range.

Always remember something though, IRC is a privilege and bans are placed at the discretion of the owners of the server or their representatives. Bans like this are most often placed to protect other users or the physical infrastructure and as such can be quite legitimate.