ref
mid 19th century: from the verb gruel ‘exhaust, punish’, from an old phrase get one's gruel ‘receive one's punishment’.