You used a Codex of Pestential thought, which adds +1 to Intelligence, but takes away 1 from Perception. They are excellent finds in random loot for everyone but rangers and trap-finding rogues and those who really like Perception.
You sure it's random? Bought one from the mysterious stranger, but that's the only time I've ever seen it in the game. If it's only random, then I found an impossibly rare item on a NPC trade from a coincidentally "special" character.
Anyway, be careful where you use it. I accidentally used it on the wrong character, pretty sure I had one selected while looking at anothers inventory. Also, I don't really agree that it's useful "for everyone". Initiative comes from Perception, which is much more important than int for a non-spellcaster.