The word is a Latin derivation from two words ‘venter’ and ‘loqui’ meaning ‘speaking from the stomach’.
Ventriloquists were almost like shamens in the early days. They would produce voices of spirits and ghosts that would possess their body, and speak from inside their stomach.
They did not become entertainers until a few hundred years later.