A computer can’t do anything on its own. To do a task, you have to tell it what to do and how to do it. For example, let’s imagine a computer whose task is to cook a dish. The recipe contains the steps to follow to cook this dish. More specifically, the recipe is the program that tells the computer how to execute this task.
The computer needs a recipe to cook the dish. But, how to get this recipe? It is simply a matter of creating the instructions necessary to run the program. In other words, you have to go through the first fundamental process of creating a program, which is programming.