Terrain flatten tool yields something that looks like it could be on mars

I couldn’t figure out why flattening the terrain was causing some sections to rise and some to drop, until I pulled far away and flattened the whole map.

This has something to do with multiple layers. I guess I need to learn how to work with terrain layers.

Anyone have a good link to look at?