And you didn’t even have to read this post. I gave you the answer right in the title.
If you want more information, here it is. Dogs pant to stay cool. It brings air into their lungs and cools their bodies through this process. Therefore, dogs cannot smell sweaty, unless you sweat on your dog, but that is just gross.