Typically they're just left there. But every once in a while someone will decide it makes sense to acquire the cable for cheap, pull it up, and re-use it somewhere else that doesn't have high bandwidth requirements but would still benefit from getting subsea connectivity. Seen this for Pacific and some Caribbean islands.