This bug was reported in December last year but remains unfixed.
Their tusk attack benefits from blacksmith upgrades but their ranged attack benefit from neither blacksmith upgrades nor incendiary arrow.
Is it a bug or is it intentional design to prevent tower elephant from being overpowered?
Not intended—hopefully a fix coming next update (not patch).