With checkboxes, nesting the input inside the label makes the label clickable. It provides a larger target for checking, unchecking.
Edit, to add: To avoid nesting you can use the for attribute. More info on the following link addressing checkboxes and input nesting, in general: