Surveillance is the name of the game in the world’s navies. Once you locate an enemy asset, with today’s technology, it can be quickly eliminated. Many understand that the era of the surface capital ship is over.
Why would they retire the aircraft if it still functions as a useful asset?
Look at the C-130 an variants. It has been around since 1954 and still counted on as a critical platform in our military.