It might be so their flower is more appealing to insects. Flowers in the sun may be more likely to pollinate than ones in the shade. Total guess there.
The leaves attach in such a way that they also get more sunlight when the plant is tilted towards the sun.