I can't say exactly why the problem happened, but what's important is what you will do now.
Eye problems are very serious. They will not fix themselves. And if the problem persists, which it will, the animal will be blind and not able to find its food.