Hogges is spot on. When I bought my little Ninja 9 years ago with 2700 miles I thought you had to get a low mileage bike. Now I realize that with proper maintenance a bike with 20, 30, even 40K miles can be a great buy. 2 years ago I bought a 39 year old Honda Nighthawk 650 with 21K miles...refreshed everything on it and it is a reliable daily ride, if needed.
Lots of good youtube channels out there showing picking up old, rusty, crusty bikes and getting them back in good running order. Long story but bikes are good for many more miles than most people think.