I found out what was going on here in our project. The OS attempts to build a menu out of the overflowed bar button items, but it needs menuRepresentation property (https://developer.apple.com/documentation/uikit/uibarbuttonitemgroup/menurepresentation) to be filled on these buttons to be able to do that.
Topic:
UI Frameworks
SubTopic:
UIKit