google
ref
Middle English: related to Old French pantaisier ‘be agitated, gasp’, based on Greek phantasioun ‘cause to imagine’, from phantasia (see fantasy).
etymonline
ref
panting (n.)
"gasping, a difficulty in breathing," mid-15c., noun of action from pant (v.).