Either your butter wasn't cold enough to begin with, or your topping mixture got too warm while you were making your batter. To ensure that your streusel topping stays in perfect form, pop it in the refrigerator while you are making the batter.