I don't know their origin, But legend has it that the Baal Shem Tov, an East European Jewish mystic who lived in Poland (Russian Empire) in the 1700s had a pipe with a stem so ling he could sit on the rear facing seat of the wagon and rest the bowl on the tailgate. He smoked before praying because it helped him with deveycus (concentration).