I have a dog. Why do I have to license her/him?

M.G.L. Chapter 140 Sections 137 & 137A state that you must license your dog. The dog must be licensed at six months of age with up to date rabies vaccinations.