I write mainly because I love a compelling, relatable story, so I write the kinds of stories I want to read.
To be quite honest:
I write because it helps me process the world.
I publish because other people tell me my writing helps them process the way they see the world.
There are probably a lot of other reasons, but those are good enough for me!