It's wrong to do things just to get attention.
Bob is upset that his sister gets all the attention even though she always breaks the rules.
Bob wants attention for himself.
Bob decides to continue to be good and be happy with attention from teachers and friends.
Bob decides that breaking the rules gets his sister attention, so he'll break rules too.
Bob learns to live with the way things are and is satisfied.
Bob tries breaking the rules but his parents continue to ignore him.