This is part of the auction system in the game, is applied to all sales, and is non-refundable. The fee is applied to successful sales but won’t be taken from an unsuccessful sale.
Here's an example of how the fee works:
The Transaction Fee helps to control the growth of coins in the economy, which helps even out prices of the best content in the Auction House. This makes the market more accessible for players of all levels.