Cheaper to manufacture it that way for a variety of reasons.
Single piece hex sockets exist, and are higher quality, but usually more expensive.