It looks like the Model S 2017 and older came with free supercharging, and the Model 3 Performance in 2018 and 2019. Model X in 2016 and 2017. Some S & X up to 2020 had unlimited supercharging.
Login to the Tesla website, click on "Manage" next to the car, then click on "Details" and it'll say "Free unlimited supercharging" if it has it.
The premise is that Tesla offers more for trade-ins for cars that have free lifetime SC and things like "Full Self Driving". They optionally disable these add-ons for new users because they're recapturing the expense of their higher trade-in offers for the cars that have them.
Yes, they're making a profit in the process, but what used car dealer doesn't?
https://electrek.co/2021/07/21/how-to-tell-if-your-tesla-qua...
You do have to be a little careful if you want to go that route though, Tesla has pulled free supercharging from some vehicles, and some had the free supercharging limited to just one owner. Also, Tesla is trying to entice people with the free supercharging to give it up, I believe the deal is $5k off a new Tesla if you give up free SC.