Why does constipation cause hemorrhoids?

Constipation causes a person to strain during a bowel movement potentially resulting in hemorrhoids.