Wordpress Theme - Edit content

I’m learning how to code a Wordpress theme and I have some questions:
How to edit the site content?
Should I allow the admin to edit images and text through the custom admin panel?
What good is having post, media, pages and comments items if the admin can edit everything through the theme panel?