The ratio for a planet to be tidally locked has to be 1:1, but the ratio for Mercury is 3:2. How is Mercury tidally locked if the ratio is not 1:1?
It's not tidally locked like the moon is because it is in a 3:2 resonance with the sun. It rotates three times for every two orbits it makes. So it isn't considered a tidal lock because it means they usually need to be in a 1:1 resonance. I think you were referring to Wikipedia, where it said Mercury was in a tidal lock with the sun. A 3:2 resonance would not be considered regular tidal locking, but elliptical tidal locking. Elliptical tidal locking means when a body is in a stable resonance that is not 1:1, so Mercury wouldn't be the best example of a tidal lock, but it would be a good example of elliptical tidal locking.
The simple answer to your question is that Mercury is not tidally locked. You may have seen old books (before 1965) that said it was tidally locked, because it was once assumed to be so. Alternatively, as zephyr said, your source may have been referring to the 3:2 resonance, but that is also not really the same thing.
Not every case of tidal locking involves synchronous rotation. With Mercury, for example, this tidally locked planet completes three rotations for every two revolutions around the Sun, a 3:2 spin–orbit resonance.
- Heller, R.; Leconte, J.; Barnes, R. (April 2011). "Tidal obliquity evolution of potentially habitable planets". Astronomy & Astrophysics. 528: 16.
Mercury is not tidally locked to the Sun. It’s likely that the original source stating Mercury is tidally locked is an old source. It’s possible to find publications printed prior to about 1965 that state Mercury is tidally locked, but this was a conclusion based largely on an assumption made by scientists who were going on very little evidence. As our knowledge increases our science changes.