That is highly disputed - there is only one study suggesting a correlation (not causation).
The causation is simple - hypericin becomes toxic when activated by light. While that doesn't mean that it definitely causes cataracts, given available data I think it's more likely that it does.