Ampere Computing Interview Question

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