They all mourned the death of Harry, and to show their respect by sacrificing something. Their ears were bit off in remembrance of harry. And they were foolish so they keep hurting themselves to show their respect to harry, eventually leading to their deaths when this wasn't what Harry wanted. He wanted them to carry on and be happy, not to mourn over his death and have them kill themselves over it.