The UCs are California state public schools funded by the state and by private donations. Each school has different endowments. The UCs recently announced that they will limit funding to OOS and international students because they font have the money.
If you weren’t offered funding for the first year, they can’t offer it for any years following that.
International students are admitted for their full pay status, $220k for 4 years. State residents don’t like their tax money going to nonresidents.
Also consider the major in engineering; jobs in the US for engineering are limited and based on US security clearances. It is expected that non-US citizens will return to their countries after their education.