If you zoom in, you'll see that the image is dithered, with neighboring pixels often having very different colors that average out to the target color of that area.
There's a whole community of people who're into creating these kinds of images: https://allrgb.com/