Encoding the images into the HTML file together with the rest of the game allows you to redistribute the entire thing pretty easily.
But I guess, the actual answer is the same as to why would you implement a game only in HTML and CSS: because you can.