Introductory programming teaches how to turn a problem into instructions a computer can run. The core building blocks are the same in every language: variables, conditions, loops, functions and collections such as lists and dictionaries.
The real skill is decomposition. A program that grades a quiz is a loop over answers, a comparison for each one and a running total, and each part can be written and tested on its own. Debugging, the habit of predicting what code should do and finding where it does something else, matters as much as writing code.
Programming is used in software development, data analysis, science, finance, design and automation of everyday tasks. Even a short script that renames files or cleans a spreadsheet can save hours, and the problem-solving habits it teaches transfer to mathematics and other technical subjects.