Almost certainly from experience, knowledge, culture, and creativity. I just weave them into a fictional narrative.
For the record, the premise of my fiction is built from subversions of hundreds of mainstream fictions I've read, combined with personal experience, historical studies, and...