Butter acts as an anti-foaming agent and helps prevent excessive foaming, making it easier to skim off any foam that does form. Butter can also contribute to the texture and mouthfeel of the jam. It adds a touch of richness and smoothness to the final product. It’s important to note that adding butter is completely optional, and it is ultimately up to your preference.