There tons of stories about samurais and ninjas and other warriors killing themselves in a number of situations, but what about regular people?
I'm assuming you're inquiring about pre-Meiji period, because the post-war suicides of Japanese military personnels was a whole different story.
What we need to understand is that the practice of seppuku is almost never a ritual practice. Stories are well, just that. The problem is that the famous stories we hear in the Western world might have been a third, or even fourth hand stories. During the Edo period, people wrote chronicles of their clans or famous clans that had died out. These stories are often created with very strong political purposes. Kuroda Kanbei the strategist? Well, the Kuroda wanted to make their face a little prettier by pretending they weren't just one of the many kokujin commanders under Hideyoshi. Ieyasu was helped by Iga ninjas to travel back to Mikawa? Well, samurais in Iga were out of jobs and wanted the neighbouring hans to hire them, so they said "hey, we made the Edo bakufu possible! Shouldn't we be compensated?". These stories then went through contemporary Japanese pop-culture interpretations and creative liberties. then finally the Western media takes its own liberty with interpretations.
We must look at the contexts in which suicides are committed to determine their nature. Different cases had different contexts, but it almost always boils down to one thing: they're gonna die either way. I think here are 3 main examples of when seppuku takes place:
TL;DR: Most seppukus weren't ritual in nature, and were mostly depended on their very real circumstances - be impending death either way or consideration for your future generations. If a commoner didn't have the same circumstances, then of course they wouldn't commit suicide.
edits: typos