Because Panama isn’t the United States?
Neither is canada. If the judge says Cruz is a citizen with all rights, then why did congress need to pass a resolution for McCain who had two US citizens for parents?