The phrase "to cook the oats" means to heat up and prepare oats, a type of grain, by boiling them in water or milk.