Stop in for a cup of coffee

Why are comb and tomb pronounced differently?