I'm someone who got to their 30s without being able to cook and God, I hated all the "just follow a recipe", "it's basic adulting" stuff you got told.
Cooking is hard! Especially when you actually want it to taste nice for someone else (ie, nicer than a fancy ready meal and worth the effort).
To follow a recipe you need the right ingredients, which requires advance notice and a shopping trip. You then need the right equipment, and it has to be in good nick (eg a sharp knife) and the right size (how many recipes have I tried that have gone off the rails at the point where I realised my pot was too big/small). You then need to have the confidence and knowledge base to rescue the meal if something goes wrong, or if the recipe says something unhelpfully vague like "it's done when it's golden brown", about an ingredient that was brown to start with.
Actually a surprising amount of recipes can be vague or miss out steps - good recipe-writing is a real skill. I once tried to make ajo blanco and it turned out like cement because the recipe gave the wrong quantity of water (and being inexperienced, I didn't want to deviate from the recipe at all).
Recipes also always lie about prep time (chopping onions and a ton of veg is not going to be a 5-minute job for an inexperienced cook with no knife skills).
Of course a lot of people can whip up delicious meals from whatever's lying around in the store cupboard, but you actually need to be a good cook with good instincts in the first place to do that. I can just about follow a recipe to make some impressive-sounding stuff now, but if I just open the cupboard I have no idea where to start.
My own improvement basically came down to hanging around DP (who is a great cook) and learning as I went along - something I never had as a child. Even now I'm pretty shit and my meals come out fairly bland and messy, so he does 99% of it (and I do the washing up).
I would never, ever have been able to come home after work and whip up anything home-cooked with no warning. Probably still couldn't. I'd be really upset if DP snapped at me because of that.
Long-term plan for the OP should be to get her husband in the kitchen with her as she cooks and make him be her sous-chef. Short-term plan should be to apologise for her own atrocious behaviour.