Larger font sizes, such as headings, have slightly fonts different adjustments meant for larger sizes.
For example, SF Pro has SF Pro Text which is meant for everyday text display at smaller sizes <14px, but for >16px SF Pro Display contains adjustments that makes SF Pro Text look unoptimised (kerning, etc).
Or maybe the user just prefers a different font for headings or larger font sizes.
It would be great to be able to specify for headings (h1 -> h6) a different font, but would be even more amazing to apply a different font based on computed (or non-computed) font size because not all sites follow basic semantics.