For other forbidden foods, such as neveilah, terefah, and chazir, a person already keeps apart from them, so there is no fear that he will taste them by mistake while cooking. As the Rambam wrote, in meat and milk each one is permitted alone, so the Torah forbade even the cooking itself, lest he taste the dish.