Direct answer
Ordinarily a passing touchdown is credited to the passer as a passing stat and to the recipient as the scorer. A quarterback can score by carrying or catching the ball, subject to the market’s official attribution rules.
What to check
Compare the labels “passing touchdowns” and “anytime touchdown scorer.” A quarterback prop and a receiver scorer selection can both concern the same play without being the same bet.