She said it hadn't flown in years. No doubt it was sitting there that whole time, and she had seen it and at least passed by it many times during that period.
She also knew what additions the junkyard boss added to the Falcon and told Han she felt the same way about how they were bad, so she knew the ship.