Melted butter helps to create a cookie that has a chewy middle and crispy edges. It also helps to achieve that overall smooth and gooey texture that we are all looking for in our chocolate chip cookies.