The company doesn’t have to… unless the employee decides to leave for that reason. Now adding an extra 7% is not about inflation but about retaining (good) employees.
I imagine that for bad or not good enough employees, the decision is rather easy for companies: let them go.