Good question! You are correct.
Infracost estimates the cost by parsing the terraform code, so when an engineer is making changes, they can have immediate feedback and make better decisions. So in that sense, Infracost is similar to Pricing calculators, expect that there are 3M+ prices between AWS, Azure and Google, cloud pricing is too damn complicated to use manual calculators… See
I gave recently for more info.