When defeating an opponent you also gain their cards. According to the official rules of the game you must immediately turn in your cards if you have 6 or more. Fewer than 6 and you have to wait until your next turn, but in the online game it forces you to turn in cards when you have 5 after defeating an opponent.
cheddar