The story that gets told is that Nintendo staff were eating at a Luigi's Pizza restaurant and the name stuck. It fits the naming logic of the era, where Mario and Luigi were meant to sound like ordinary Italian-American names rather than anything symbolic.
So the short version: it came from a pizza place, and it happened to pair nicely with Mario.