I don’t know about the US but in many jurisdictions you cannot be forced to testify against close family (spouse, children).
It’s clearly about the state not creating a cruel situation.