State tax filing

I am a Minnesota resident, but why am I paying California state tax ,even though I didn't live more than 2 months, or wrk there?