Comitia is indeed derived from comes. Both come from the prefix com- "with, together" plus the root i- "go": a companion is someone who goes with you, and an assembly is a place where people go together. Here's the entry from de Vaan's etymological dictionary of Latin:

Only top voted, non community-wiki answers of a minimum length are eligible