one logical guess would be that it has reached the max number of allowed channels by that irc network/server. so in order to join a new channel, it must also part a channel to keep under the limit. this limit varies by irc network.