The €2 fee is real, but I'd argue the coin-throwing drop is probably more about how the fountain operates now than people being put off by the price itself. When you're already paying to get close enough to toss a coin, most folks who bothered to get there will drop something in anyway - two euros isn't going to stop someone who traveled to Rome. What actually matters is whether people can physically access the fountain and have that moment to make a wish.
The maintenance closures mentioned in the previous answer are definitely part of it, but there's another angle: the coins themselves. For years, money thrown in the Trevi got collected and donated to charity, which was nice and kept the tradition alive. But once authorities started strictly managing access and creating barriers, the whole spontaneous vibe changed. People aren't just deciding not to throw coins because of a small entry fee - they're doing it less because the experience itself feels more controlled and less like this magical, spontaneous thing you do when visiting. It's the difference between a tradition that happens organically versus one you're paying to participate in.