It's like bargaining on a fair. A method to determine a price suitable for both sides - instead of charging every customer the same price.
And it's not (only) about how much money the customer has. A rich customer can still be price sensitive and would get a low price based on price discrimination.
Also, in my opinion, ads and tracking are (mostly) orthogonal concepts. A website can track or show ads or both or do nothing. Tracking is often used for ads but not exclusively so.