California was seen as a new "land of opportunity" and in 1848 gold was discovered in California, creating the famous Gold Rush of 1849. The hope of striking it rich by mining gold in California or silver in Nevada continued to attract settlers to the West for decades, which most likely spurred people to go to California.
Hope this helps :)