Why are there earthquakes in San Fransico?

because the San Andreas fault line lies over San Fransico