JPEG compression divides images into 8x8 pixel blocks, applies a Discrete Cosine Transform (DCT) to move data to the frequency domain, and then uses a quantization matrix to round off and discard high-frequency coefficients, which are less perceptible to the human eye, thereby easily erasing watermarks embedded in these bands.