Tennis players earn appearance fees. Pro tennis players are individual contractors who work under the ATP for men and the WTA for women. They accumulate points based on the tournaments they play and how far they go when they compete. At the end of the season, the tennis players with the most points win fairly big bonuses.
https://www.sportscasting.com/a-breakdown-of-how-pro-tennis-players-get-paid