When you make a transaction on the Bitcoin network (and really every other cryptocurrency), you tack on a fee to the amount of coin you want to send. Miners prioritize higher fee transactions when deciding which transactions to include in the next block. Therefore, to guarantee your inclusion in the next block, you would choose to increase the fee you pay.
So, for this transaction, they chose to pay a $5000 fee to guarantee their placement in this block.