If you want to study writing, read Dickens. That's how to study writing, or Faulkner, or D.H. Lawrence, or John Keats. They can teach you everything you need to know about writing.
It's a lot of random situations that combine in a certain volatile form and create a bigger-than- the-whole situation that nobody could have predicted.