SO WHY DOES IT WORK? - Think about Tetris!... sorta
Our hard drives are Spacious big entities where we dump our Operating system, data, pictures videos and other personal files, each file has a certain size, data is written onto the hard drive in blocks of information, small files take 1 or few blocks, while big and larger file take much many blocks, Have you ever played TETRIS? well, your computer plays Tetris too every time it saves files!
Each color represents a file, new big files will be split inside
those empty spaces! Fragmentation in a nutshell!