The Arab world has moved away from secular ideaologies and has moved towards Islamic fundamentalism recently. Look at Egypt, Saudia Arabia, Pakistan, Lebanon (Hizbullah), etc. Hamas is part of the same phenomenon.

Secondly, as everyone agrees, Arafat's PA is completely corrupt and violates human rights, this also pushes many people to Hamas.