"Me and Bobby McGee" was written by Kris Kristofferson and Fred Foster. Bobby McGee is a fictional character—the name came from a mishearing of "Bobby McKee" (a secretary at Foster's publishing company).
Her 1971 posthumous release (on Pearl) made it iconic—raw, yearning, definitive. But it's not about Bobby Neuwirth, though he was a close friend, bandmate, and fellow songwriter.
Kristofferson → Roger Miller (1969, first release) → Gordon Lightfoot → Janis Joplin (1971, #1 posthumous). Each interpretation revealed new facets. The name "Bobby McGee" stuck because it sounded right—gender-ambiguous, rhythmic, real.