He got 40€ out and paid 4€ in fees. Thats not uncommon in Germany, where different bank groups (eg Deutsche Bank, the Raiffeisen cooperative association and the Sparkasse) charge nothing for withdrawals but other bank customers get charged. Couple of years ago it was introduced that the fees had to be displayed prior to withdrawal but they're still high.
"$44 to get $40" => $4 in fees for using another bank's ATM. This is very much within the ballpark range for USA at least.
Sidenote: Usually such fees are O(1), i.e., independent of the actual amount being withdrawn (and even applies to non-monetary transactions, such as balance inquiry).