It is traditionally used only for a random name. Some other common ones:
The alleged origin of foo and bar is that "FUBAR" was a World War II slang for F *** ed Up Beyond All Recognition. FUBAR => FOOBAR => Foo and Bar.
In fact, there is no good reason to choose it, except that no language leaves the word foo and that it is easy to enter / read.
source share