I've been an electronics hobbyist for years, and I still don't own a 3D printer. You can buy premade enclosures in almost every size you can imagine. Then just drill holes to mount IO ports.
I do want to get a 3D printer exactly for this reason, but I've just never gotten around to buying one. They are certainly not a necessity if you want to build your own stuff.