Several factors can contribute to the development of hemorrhoids, including straining during bowel movements, pregnancy, obesity, and a sedentary lifestyle.