It costs Square money (card network costs) to refund a transaction. It's not a penalty, it's just costs associated with moving money. Even if the money is moving the other way, there's still a cost.
Definitely "The way it is" -- but it does seem greedy. All systems drift toward the greediest possible implementation, though, in the absence of competition or regulation mandating otherwise, of which we have neither.