I have been working on a private blockchain and observed that a miner, when started, keeps on adding empty blocks with no transactions to the blockchain. Why is this happening? It doesn't make any sense to add empty blocks. This just results in the blockchain occupying more space. Is there a reason behind this? Although unlikely, will the same scenario occur in the Ethereum blockchain if there are no transactions?
P.S: Here's a useful snippet to start mining only when there are transactions.