The story
Pseudo-Italianism, derived from barista (“bartender”), the -a having been interpreted as the Italian feminine singular ending -a, and then substituted with the masculine singular ending -o to specify a masculine, rather than feminine, agent noun.
Etymology from Wiktionary, CC BY-SA 4.0.