Terrain heightmap doesn't look right

When I export the heightmap of my terrain, instead of it looking like a proper height map, it looks like this:

It looks great at first glance but if you give it more thought than none at all, it doesn’t make any sense. Please help

I also have this problem, my heightmaps also look like this, for some reason? I hope somebody has an answer :confused: