If a female character is feminine, she will be able to cook. If she isn’t, then any and all attempts to cook will end in failure or poison the consumer. Thus the Girly Girl will be a better cook than the Tomboy.
By feminine, we mean traditional domestically-focused wife-like roles. Being sexy isn’t enough to qualify. You can also lose femininity by becoming overly childish and cute. We are talking about a traditionalist grown woman femininity here ; The Wife of The Three Faces of Eve.
Keep in mind that this trope refers to home cooking, not professional cookery.