Why plants produce nectar in some locations and not others