Not a recruiter. You ignore it and keep it to yourself. Full stop. People look for jobs for any number of personal reasons.
Way way more often, the case is either flat out bad management or misalignment of the employee expectations with management and/or organizational vision which is way way harder to quantify so thus, nobody does. In the latter, there are often performance issues anyway.
All that said, I’ve worked for companies and have also seen people fired just for simply “looking.” Usually this is a sign of clear toxicity in the company culture because the management ego was hurt when they found out their employee was disloyal. We all know the company would just kick an employee to the curb at the first sign of trouble so it’s unfair to expect anything else from an employee.