Original: Lexington was founded in June 1775 in what was then Virginia (17 years before Kentucky became a state in 1792).
Simplified: This is because Kentucky was still part of Virginia then, and was not made into a state of its own until 1792.