Why the hell did Japanese samurai commit seppuku (harakiri)?

Seppuku (harakiri) is “ritual suicide” practiced by Japanese samurai, but why the hell did they adhere to such a dreadful idea? Here’s why.