late 14c., "giving heed," from L. attentionem (nom. attentio) "attention, attentiveness," noun of action from attendere "mental heeding." Used with a remarkable diversity of verbs (e.g. pay, gather, attract, draw, call). As a military cautionary word preparative to giving a command, it is attested from 1792.