What does it mean to speculate in relation to investments?

Hi. I often read somewhere on the internet that investors only speculate. I know what the word means in normal usage, but what it means to speculate in the investment dictionary. Thanks for your help and best regards