The eye of the fish looks swollen. This is normally caused by pathogenic bacteria or viruses or kidney failure.
Since nothing else indicates kidney failure I think the fish had an infection.
You can try to treat against bacterial infections and keep the water clean by doing weekly water changes of at least 50%.