Dirt can generate naturally on the surface near pools, which is pointless because it ends up becoming grass anyways. This also occurs with lava pools.
Note that reproducing this bug seems to be dependent on the order in which chunks are loaded. Therefore you might have to adjust your view distance and don't directly teleport to affected placed. The original reporter used 16 chunk render distance.
Last updated for 21w17a