What is going on with the slicer

The model is like this

It slices like this

Why does it do this?

Cura;

It does this even when merged.

Nevermind. The solution is to turn off ‘detect thin walls’ which is very weird because those are not thin walls.