The risks
Security updates no longer available, few people who understand it, difficulty connecting it to modern tools, and data trapped inside. Often everything works until a hardware failure or a departing employee exposes the risk.
The options
Maintain and secure it while documenting it; modernise step by step, for example by adding APIs and moving features out one at a time; or replace it with new or off-the-shelf software and migrate the data. Gradual approaches are usually safer than a big-bang switch.
Questions, answered
When the cost and risk of keeping it exceed the cost of replacement, or when it blocks important improvements.
Usually, with careful mapping, cleaning and testing of the old data.