The flowers bloom before the leaves grow because the sun is able to get to the forest floor. When the leaves grow, they take up all the sunlight and cast darkness on the forest floor, so the wildflowers can’t bloom anymore. Without sunlight, they can’t photosynthesize and create sugar/food for themselves.