How does a program run?
Let us follow a program from the moment you double-click it. Say you open a calculator app.
First, the program is sitting in storage, in the cabinet. Then the operating system takes a copy of it and puts it on the desk, which is the RAM. The original stays safe in the cabinet.
Now the CPU starts reading the instructions from the desk, one by one, from the top. Each instruction is tiny: take this number, add that number, show the result. Think of a cook following a recipe line by line.
This is why a program takes a moment to open: copying it from the cabinet to the desk takes time. Once it is on the desk, it runs fast. And when you close the program, its place on the desk is freed for others.
Here is a tiny program with three instructions. The CPU does them in order, from top to bottom.
python
The first line puts 2 in a box named a. The second line puts 3 in a box named b. The third line adds them and shows 5 on the screen. A real program is the same idea, just with millions of lines.