Whats the point of a "dealer discount"?

Looking at a Hyundai Santa Fe and found one here on Caredge for 32K. After looking at the dealer site the MSRP was 36K with a 4K “dealer discount”. The OTD they sent to me was 37K. Whats the point of the dealer discount? Is this just a means of getting people to contact them?

It may be a stupid question, but I am curious.

Thanks.