Some sort of internal growth, either a tumour or cyst. There's no cure for either and you euthanise when the fish stops eating or can't swim properly.
Tumours normally take a few months to develop into something like that. Cysts can take a few days to weeks.