This universalism probably stems from the fact that it's based on one of the most basic social instincts of humans: It happens all the time subconsciously that we humans perceive part of the world as the ingroup, and the rest as the other. That can be really helpful as without such, communities wouldn't work. This instinct leads to us helping and supporting those we consider to be part of our group, and being cautious towards things and people new to us as they may be dangerous.
But it also leads to intolerance, blindness towards anything new, and it supports authoritarianism and dogmas. So, to become aware of this bias and to follow the curiosity of trying to understand the other can mean, depending on the situation, learning something really worthwhile that one couldn't have figured out otherwise, but it can also mean breaking the rules of one's society and running over to its enemy, for better or for worse. And it can also mean both simultaneously.
Due to that it doesn't seem surprising that deities that symbolize the other, deities that symbolize wickedness and deities that symbolize wisdom and knowledge can be one and the same.
Nevertheless I'm not sure how often it actually happens that these concepts get combined. Most of the deities I can think of are either of otherness and wickedness or of wisdom and knowledge, even though there are sure quite a number of those who combine it.
So I wouldn't say that this happens in every culture, at least not at every time. In the Abrahamic religions for example, Satan representing knowledge and wisdom is only a very small aspect which at most times was ignored. Him being called Lucifer is not only a very late development but also a mix of mistranslation and misinterpretation. In Judaism, those mythological beings that combine otherness/wickedness and knowledge rather are some other fallen angels, especially Samyaza and Azazel who were punished not only for having children with humans, but also for teaching humankind the arts and technology. But they almost only appear in the book of Enoch and other apogryphical texts which are not in the canon.