Chilling the cream cheese balls allows them to set and easily sit inside of the cookie dough before baking. It also slows how quickly the cream cheese melts and cooks in the oven, keeping it from seeping out of the cookies.