The cookies probably weren't sealed well from the bottom and the filling managed to seep out whilst baking. It could also be because the filling wasn't chilled enough and melted before the cookie was able to bake.