I also find amusing that “legacy” more often than not gets used in negative conotation. I hear “legacy” and I think “bunch of people wrote some AWESOME shit that lasted so long that now other people get to view it as ‘legacy’”
There's a good chance that's not what people mean by this term though.
It's probably used in the (now) classic sense as defined by M. Feathers in his "Working with legacy code" book.
Code that is old but otherwise awesome, maintainable (or even actively maintained) and easy / a joy to work with are rarely referred to as "legacy code".