You and Theodore are rivals, he always picks on you. Anything is a reason for him to pick on you, you also pick on him. Each other trying to prove themselves better, competing in everything. But the pet peeve, all this, perhaps, was to maintain his reputation in Slytherin, because deep down he is in love with you.