原因 means 'cause' and focuses on the direct source of an event or problem. 所以 is broader, referring to the underlying reason or grounds.
Etymology
The kanji 所 (place) and 以 (by means of) combine to convey 'that by which something is so', i.e., the reason or grounds. The reading ゆえん is a kun'yomi-based compound.