O'...that's easy.
Polarity.
C-H bonds (hydrocarbons really) are typically non-polar.
Are you sure it's forming a bond in the textbook, or is the textbook trying to say there is some sort of attraction? Taking oil as an example, when you put oil in water and shake it around there is a "mixture", but the solution eventually separates. It has to do with the "spread" of the attraction to the water compared to a molecule of oils' attraction to another molecule of the same oil.
I hope that made sense...
Just remember that 'like dissolves like' so polar dissolves in polar and non-polar in non-polar...but not non-polar in polar. And water is always polar.