As Rod said it is all to do with the reference lines.
If you turn off the "Clean wall and beam intersections" option you will find that the corner of your external wall doesn't actually exist as the walls are really only as long as their reference lines.
Therefore your internal wall at the corner is not actually touching any other wall and will not trim.
The wall midway along the external wall is touching so it does trim.
So move your reference lines of the internal walls to the inside as Rod suggests.
It is an extra step as generally you will model those walls using the external dimensions (unless you use an offset) so you have to place them and then move the reference lines.
But you only have to do it at these corner intersections.
There is a similar post here that may explain it a little more.
http://archicad-talk.graphisoft.com/viewtopic.php?p=181165
I am sure there are others.
I recall others using columns in the corners (there are posts about that somewhere) but I think this may only work for single skin walls and not multi-skin as you have used here - but I could be wrong.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11