When multiple teams work on the same rails project, you're bound to have someone enhance some class somewhere, and all of a sudden, your isolated class is doing things it's not supposed to do, or at least you think it's not supposed to be doing it.
You try to debug it, but there are no types no way for the tools you're using to let you know easily, here is where this specific piece of logic coming from.
In Typescript, entities have types and when you misuse something the typescript checker tells you while you're coding why, that's not what you're supposed to do. You can super easily track down the type and navigate the code base to the source and adapt either your code or edit the source. Easily.
With rails, you're often required to do mental gymnastics to debug simple things, after the fact