C-section question

Does the ob schedule a c section or how does it work ?