You have learnt that a computer is a complex machine made up of many parts. It is designed to accept inputs in the form of data and instructions. It then processes the inputs to give an output.
The computers that we use today are very different when compared to the early calculating devices. People have been using different calculating devices for a long time. With the progress in science and technology, they needed a machine that would calculate accurately. A machine that would also do complex calculations.