Why is coconut oil less dense than water though it is thicker than water?

Just because something is thicker than something does not mean it is more dense. Coconut oil may be more viscous than water, but it is less dense. Perhaps because of the strong hydrogen bonding in water, more mass is able to be packed per unit volume than in coconut oil.