The reason your spouse is entitled to part of your 401K in California, is because it is considered to be community property. In the event of a divorce your spouse is entitled to 50% of the earnings made on the 401K investments from the duration of your marriage.