Usually it’s from baking in an oven that isn’t hot enough. High heat is needed to create the steam in the oven so the pastry rises. Always check your oven temperature with an oven thermometer to test your ovens accuracy.