Most of the things on Charles Messier's eponymous list look fuzzy through a small telescope and hence could be mistaken for a comet, which Messier was trying to find. So M40, the only double star on the list, is a bit of a puzzle as to why he added it.