Q:

How does Wordpress insert Paragraphs in posts

So when looking at the html-view in the editor there is no <p> tags, when a view the post every line break is surrounded with a <p>.  How? 

A:

The content is run through the wpautop filter (there's a lot about that on Google).