The Romans started with nothing but what we today know as capitals [1] (imported from elsewhere but that is another story). Everyone who needs to write a lot and fast (e.g. merchants) will optimize the letters for this purpose and thus dramatically change how the letters look. That’s how the Romans got their cursive [2]. If, on the other hand, your task is to chisel letters into stone or copy a book you can be extra diligent, an opportunity to clean up letterforms [3].
Those two writing styles – cursive and capitals – were not intended to be combined with each other. It’s only later, in medieval times, that both letterforms are used together [4].
[1] Example: http://en.wikipedia.org/wiki/File:Hermes_16_illustration1.pn...
[2] http://en.wikipedia.org/wiki/Roman_cursive
[3] Square Capitals, example: http://en.wikipedia.org/wiki/File:Arch.of.Titus-Inscription.... – Uncial: http://en.wikipedia.org/wiki/Uncial_script
[4] Example: http://en.wikipedia.org/wiki/File:Minuscule_caroline.jpg
...which doesn't exactly answer your question of what it's "for", I guess. But to some extent, we have two cases because that's what history gave us, and now we make use of them as best we can.
I've found in reading older text that it doesn't noticeably affect the speed of comprehension, but the capitalization of nouns does seem to subtly shift the emphasis away from the action being described by the sentence and toward the things taking part in it.
I wonder what would happen if someone did a design study of showing all caps vs sentence case text to people who have never seen English. Wonder which one would they say looks better.
I wonder why caps were even important. I mean, it's just another set of the same letters, what's it for?
After a while, I did find some uses for it. Namely, when reading books, if you come across a name you don't recognize (say, the name of a person), in Hebrew you can't tell that it's a name; for all you know, it's a word that you don't recognize and not a name.