They can last significantly longer, but it could go tomorrow. One thing to consider is that there are new Federal requirements on the new ones, and there are significantly more efficient models available. The minimum efficiency is now much higher than it was even a few years ago. Still, probably not worth replacing before it fails, but it may warrant some investigation so you have an idea what you want when it happens. Note, because the new ones use a different refrigerant, you will need to replace the evaporator coils and lines as well, making it almost like a new installation, not just a replacement.
The Trane guys said they had one compressor that just keeps going in the factory...much older than yours.
Many of the new compressors use a scroll compressor verses a piston type. These can be longer lasting, but just like anything, the quality of construction determines the ultimate result.