Messier named objects that he felt could be confused with comets when he was comet hunting. As Grant has pointed out, it is unlikely he would have confused the Milky Way with a comet. Within the Milky Way there are thousands of star clusters, emission, reflection and planetary nebulae which all have their own designations – many of them Messier numbers.