The openings between the lattice allows fruit juices in pie fillings to evaporate during the cooking process, which can  caramelize the filling.
In baking, the lattice's gaps allow fruit juices in pie fillings to escape and evaporate during the cooking process, leading to a caramelized filling.