Writing is learning, even if you never push for publication.
You learn how to write and rewrite.
You learn to transcribe every lilt and nuance of your inner voice.
You learn your strengths and limitations.
You learn how to communicate to someone you may never meet.
You learn all the things you still need to learn.
You learn about yourself.