Why do plants produce nectar?

A.to attract pollinators
B.to aid in self-pollination
C.to allow for asexual reproduction
D.to help them make pollen