I believe the term originated in the 13th and Vine Jazz District of Kansas City. As the Black musicians couldn't stay the night at the Whites Only hotels in which they played. They'd return to an all-Black hotel where they all 'jammed' into a small room at the end of the evening.