Secondary constipation occurs due to other underlying diseases such as neurological, metabolic, and endocrine diseases. Some medicines can also cause secondary constipation.