Fact 1: Flowers attract pollinators, and fruits encourage animals to disperse the seeds. 
Fact 2: Most plants are either insect pollinated or wind pollinated.
Attractive flowers are not required for plants that use wind to disperse pollen.