I think neither Sony nor Nintendo are doing anything wrong here. If you don't think a machine is worth its asking price then don't buy it. They are big corporations, not charity recipients. If anything, people who bought a PS5 or Switch 2 one year ago made a good deal, considering the machines are more expensive now...
I could make exactly the same argument for Sony and Nintendo shipping hardware to the US while tariffs were imposed. If they didn't think it was worth paying the tariffs they shouldn't have shipped hardware to it. But two things can be true here, they still thought it was worth it even with the tariffs but also are not going to say no to getting those tariffs refunded. It's the same on the consumer side. Also, I'm personally not gonna get mad about these console manufacturers charging customers more because of external factors like component prices and tariffs, so as long as I have the money I would be able to accept higher prices knowing the circumstances. But if I then hear they somehow got a refund on these things that cost more for them which they passed down to me, I would absolutely feel scammed in hindsight.
Why refund the customers? Let the US government do it.
Why would the US government pay the customers? The customers didn't pay those tariffs to the US government, Sony and Nintendo did and sent the bill to their customers. Hence why they should be the ones footing the bill for any refunds.