With the Gold Rush, California’s population rapidly swelled…

With the Gold Rush, California’s population rapidly swelled to nearly 100,000 people in about a year.  Accordingly, California petitioned to become a formal United States territory.  That’s a normal part of the process of becoming a state.  What happened when California made this completely reasonable request and why?