Cooking is a literal survival skill. If you don’t know how to grill something or boil water, you’ll just end up spending way too much money on restaurants, microwave food, and takeout. Cooking is the easiest way to save money compared to those things (premade frozen meals especially get expensive when you realize how little food you get for the price).
Getting good at cooking is work in itself, but cooking regularly makes those skills come fast. It’s easier than ever too, as you can look up cooking tutorials for everything, and there are meal kit deliveries that will often give you guides with pictures. Additionally, so many cooking gadgets exist to make the process faster. You don’t have to love cooking, but just knowing the basics goes a long way.
With all the tools available to become a better cook, it would be easier for a guy to become good at cooking than to get in a long term relationship with a woman. Human relationships are work in themselves, and it takes a while to find the person that works best with you. Cooking, all you need to do is learn to read recipes, practice knife skills, and critique your own work to make improvements. That has way less chance involved than trying to snag a girlfriend or wife to do the cooking for you.