I thought companies still had the right to hire (or not hire) who they wanted.
I am not aware of any law, regulation or rule requiring the company to declare the reason for rejecting an applicant, either.