Fresh raspberries keep their shape when they are baked in the oven. If you use frozen raspberries, they will melt into the custard and leak moisture into the custard and pastry. This could cause the pastry not to rise or give the pastry a soggy bottom. This is why it is best to use fresh raspberries.