The story originated from a false pregnancy that Queen Mary the first went through. Which resulted in people being burned to death, which gave her the nickname Bloody Mary
The old ritual was that women had to walk backwards up a flight of stairs while holding a candle and looking into a hand mirror and as they were going up they were supposed to see their future husband, but if they saw the grim reaper instead that means that they would die before marriage.