They traded him with three years to go on a pretty good contract. And they did it while they were contending and Archer was playing pretty well.
The corollary for the jays would be to trade Teo last trade deadline or something like that. But, that's an even smaller version of that. Like, I don't know what our version of that would be but we don't do it and almost no other contending team is willing to do that. The Rays are WILLING to trade still good players at positions of need while they are contending. Our fans would hate it but if you ever want to pull off massive rip off deals like that pirates deal, that's how you do it.
The financial walls the Ray's front office work within limit what they can do but also give them freedom to do what other teams won't do.