Originally it was a colloquial shortening of "hallucination" and gain a wide spread as a description of phenomenon when "you see something wrong or unexpected".
Later among IT-crowd (and then everywhere) it became popular particularly as an observed occurrence of non-documented behavior of software. Still colloquial and informal. The word is well known in both meanings for people below, let us say, 45.