As per the card numbers the rank of cards is made a decision. When the dealer has a queen drawn, he compares the cards to those that have not folded and decides which hand is more effective.
Around the 18th and 19th century, the tarot deck became common with psychics and mystics. https://baccarat369.com