It is pointless having multiple airframes for multiple roles...
ASW requires a vast array of sensors, a large bomb bay, and storage for (ideally) 300 buoys.
Given the size required for this, it would be stupid not to have it capable of doing other roles......
Remember, flexibility is the key to air power....