Most cataracts develop with age or sometimes injury. There are a few exceptions of inherited genetics disorder or sometimes past eye surgery.
Long term use of steroids can also cause cataracts.
If you have diabetes, you are more at risk of developping cataracts.