Some end caps are threaded on. For example, some Bitex axles use threaded caps, and some other brands' hubs are made by Bitex and so may share that design. Off the top of my head, (some, maybe all) Origin8 hubs are Bitex.
I'm sure. But those generally aren't the kind that fall off like I suspect the OP's did.