SOS is basically a reflection of the W-L record of your opponents combined with the W-L record of their opponents. Nothing more, nothing less.
RPI takes into account your specific team's W-L record and whether it was home or road. With the factoring in of road/home outcomes (1.4 vs .6) a team that goes 5-5 on the road is actually playing .700 ball. And a team that goes 5-5 at home is only at .300. But your team's success is only 25% of the total RPI compared to the 75% weight of the SOS.
So in this case, a team that was 5-5 on the road would have a RPI about .100 better than a team that played the same opponents, but was 5-5 at home.
That's a reason many look at the RPI as an incomplete number that only tells part of the story, and in RL it's not unusual for a team with a 50+ RPI to get a 6 seed in the tourney and a team with a sub 50 RPI to get out.