I might think that of biography, or autobiography. But fiction writers often don't know what it's like to be that sort of person, they just make it up.
Just making it up without adapting from anything real usually isn't something that good fiction is built up from, though. That path goes directly to cliche, and it's easy to find cliched fiction.