According to first law of motion, our body tries to be in the state of motion it already was, which in this case is moving along a straight path. But once the car takes a turn, our body tries to maintain its current state and so we are thrown outside.