Boba Fett got the dent in his helmet during a fight against Cad Bane, another infamous bounty hunter. This fight is an integral part of the Star Wars lore, which makes this character deeper. The dent has become an iconic feature that signifies that Boba Fett had fought in many battles and faced many challenges.