Not a bug. It’s because Recast has no concept of “inside”, just “blocking surface”. It’s a feature of Recast - what if you had a big blocking volume, that a player cannot get into, but where AI lives and can be observed? If you want to get rid of these areas use navmesh modifiers or play around with RecastNavMesh.MinRegionArea
value.
Cheers,
–mieszko