Who's never worked on a spaghetti code? Luck you.
I've worked on sever projects that had some spaghetti code. And all this started because of a lack of structure.
A well-structured application helps you avoid that mess by clearly separating concern...