Coconut palm is monoecious, while date palm is dioecious. Why are they so called?

Coconut palm bears both kinds of flowers on the same plant.
Date palm bears only one type male and female flowers on different plants.