This is a problem when raising children, and this one is sure to be common across all cultures. Their incessant whining makes parenting more difficult than it has to be. But somehow both parents and children seem to get past the whining, the children grow up and enter the work force. But the lack of early training and conditioning means some (okay, many) kids bring their tendency to whine into the workplace.
Whining will drain your energy and your co-workers will feel a loss of energy when they listen to you. This is a good reason not to whine, but there is a more compelling reason.
Before you whine to your co-workers, you are whining to yourself in your head. You formulate your complaint, your negative thoughts, rationalize it in your mind, and prepare to deliver it. This is an utter loss of productivity. You may have conditioned yourself over many years, thus the habit may be hard to break.
Nevertheless, if you whine, even occasionally, it is time to change this behavior. Now.