I was a TN holder once and had company lawyers prepare my TN dossier so that it was watertight so I was never refused.
A refusal should only result in applicant being turned back and asked to try again after having addressed the shortcomings. There is nothing illegal about that.
Unless she is being held for something else that the story is not telling us about, refusal is no grounds for detention.