If you look at the firewall flowchart from this thread:
you'll see that the packet generated by the router (when you run /ping on the router, then the router generates the ICMP packets, #15 in the chart), the prerouting chain of the mangle table (number #4 in the chart) is not consulted, only the output chain of the mangle table (#19). Which means the two mangle rules above have no effects on the packets generated by the /ping command.
When you use /routing rule then the rules are effective at #16 and #21, that's why it works.