I guess Oda put his own spin on the Precognitive , soul looking abilities and turned it into Dreams manifestation.
Part-dragon, part-horse, the Qilin was a magical beast native to China, resembling a deer with golden bronze scales covering their back. With precognitive abilities, the creatures could look into a person's soul and perceive their purity of heart - in which instance they would bow to them.