Another way to say "Meat is cooked to kill bacteria in it." is "Cooking meat has the aim of killing bacteria."