Usually because the borrower is not in a rational state of mind, and because we as humans focus more on today than tomorrow. Payday loans (like the loan sharks of old) take advantages of this in order to put borrowers in positions that a rational, future conscious person would never get into.
Economics say one thing, but it's the humans in the equation which muck up these otherwise ideal economic principals. Ultimately, economics should be there to serve people, not the other way around; payday loans are there to exploit people in need, not serve those who are in tough situations.