Of course cooking is hard. It's a skill like any other, and not just one skill but dozens and dozens of different techniques and processes that you need to learn, practice and recall.
Like everything else, some people are naturally good at it, some people will have had excellent teachers (at home) who pass on their knowledge, some people are motivated to learn because it interests them, and others have no idea where to start.
Who taught you to chop onions very finely for a sauce, but in chunks for a stir-fry? When did you learn how to prepare potatoes for roasting? How do you know which cut of meat to use for a stir fry? How long does it take to cook a pork chop? What herb goes best with lamb? Should you salt the meat before cooking? What temperature is best for cooking steak? If you taste your pasta sauce and its not quite right, how do you know what to add? There are literally hundreds of things you need to know.
Understanding timings is one of the biggest challenges. Pasta only takes 10 minutes to cook, but you need to take into account 10 minutes to boil the water. So, what do you start first? Cooking onions and bacon for a carbonara sauce or getting the water going for the pasta?
You also need to understand how to keep cooked food good until its time to serve. For example, when did you learn that if you tip cooked pasta back in the pot but don't mix your sauce in quickly you'll end up with a lump of pasta basically glued together?
I think cooking is actually quite complicated, and it takes a long time to build your confidence in all these little skills.
Some people need lots of extra help, encouragement and practice before that get good results even after following the recipe to a T.
Have some empathy. Think about how disappointing it is to put loads of time and effort into something only for it to turn out terrible - no wonder you'd be more likely to but pre prepared food that you know will turn out edible, at least. Why would you bother wasting your time and money again unless you knew how to improve?