Butter adds richness and flavor which you expect in a good gravy. It's used to sauté aromatics like onions which is then used to create a good roux (a mixture of butter and flour) that thickens the gravy.