Why were pillows first used in ancient times?