Why do vegetables have to be stewed first when using in a quiche?

Vegetables contain moisture and this is released when heated. By heating / stewing / stir frying the vegetables first, this moisture will be released. The moisture will therefore no longer be released during the baking process. The combination of moisture, cream and eggs does not give a good set.