Is it legal for a manager to make such comments to an employee? Yes.
Particularly in the realm of a performance evaluation, the behavior seems questionable at best? I see nothing remotely questionable about the comments the manager made. The manager was expressing a concern about the employee's state of health and possible dissatisfaction with his or her job ("you look unhappy".) There's nothing inappropriate or illegal about that.

