Piles can happen due to constipation or long-lasting diarrhoea, old age, persistent coughing, lifting heavy objects and other factors.