Ampere Computing interview question

Why split code into object classes instead of just writing it in a structured way?