Most likely you under baked it, or opened the oven to check on it and closed the door to the oven a little too hard. If this is a consistent problem you are having with your baked goods, make sure to replace your baking powder - it goes old quickly.