It's because you put raw cookie dough on a cookie sheet that was still warm and put that into the oven. When you are placing cookies onto a baking sheet that is going into the oven, that sheet has to be cool so everything bakes and warms together. If not, the cookies will burn on the edges because the warm sheet will allow the dough to spread too quickly.