Boiled down to the simplest terms, making a video game takes a mix of things: knowledge of programming languages like C++, strong math skills, financial resources, software tools, countless man-hours, software engineering know-how, and marketing, because a finished game doesn't just appear on a shelf by itself.
For perspective, blockbuster titles like Call of Duty can take years upon years of work from hundreds of people to release a single modern game. On the other end are smaller 2D or modest 3D titles made by one person or a tiny team, known as indie games.
Indies are usually cheaper because they don't have the resources behind a full modern production. Many of them fail, too. It often means years of sitting and programming without pay, and if one person quits, the whole project can collapse.
The upside is that when an indie developer plays their cards right and not only makes but successfully sells a game, the payoff can be enormous. Great indie hits like Minecraft have brought in riches beyond belief.