This is pretty illogical comparison. When we praise soldiers, we do it not for them getting paid for their bodies, but for hard work, and risks they take protecting us.
Considering the risk are bodily harm, there is some similarity to the risks of bodily harm that some sex workers take, and far more frequently, than soldiers. STDs, violent guys, etc etc.
> but for hard work
Do sex workers not work hard (pun potentially intended)? I don't see society praising them for their hard work and the risks they take.