Stomachs aren't necessary... You can jump straight to the large intestine. Even humans can survive like that
Obviously, they're useful. It's another stage of digestion, which means more energy and nutrients are extracted from your food. It widens your viable food sources, just like chewing does