perhaps back-formation from Middle English pety small — more at petty
Date:
1508
1 a: a pampered and usually spoiled childb: a person who is treated with unusual kindness or consideration :darling2: a domesticated animal kept for pleasure rather than utility