Non-compete agreements serve the purpose of protecting an employer’s legitimate business interests, such as trade secrets and client relationships, by restricting employees from working for competitors or starting a similar business after their current employment.