Fieldsets are used to group related form elements. They are added automatically by the radio button, checkbox and date helpers but can be manually applied to other groups where applicable.
A common use case for fieldsets is grouping address fields. The individual components of an address don’t really make sense alone so grouping them is a logical step. The grouping also improves the experience for screen reader users, the screen reader will announce the legend before reading the individual field labels.