Jo,
It's happened to more than one brand of onion powder I've bought in my cooking life. The one I currently have is the Trader Joe's brand; there's no link for it.
I would assume that if your garlic powder doesn't clump, it probably has some kind of anti-clumping agent in it.