You are missing nothing. This is just the way libraries work. There are quite a few threads with similar questions recently, like this one or this one .
IMO, this makes widget libraries pointless. I am about to give up on them anyway.