Constipation has many possible causes, not just dehydration. You may not be eating enough fiber, getting enough activity, or sleeping well. All those things can contribute to constipation.