Every block has a limited amount of space for transactions (1 MB previously, 4 and up to 8 technically with segregated witness?) , the person mining the block includes transactions based on fees provided by users initiating the transaction.
If there are tons of people looking to make transactions, fees go up or down based on people's willingness to pay to be included in the next block.