The selection doesn't actually reveal anything. You're given the opportunity to switch prior to opening the envelope.
Using your example, ignoring selection and envelopes and simplifying the goal of the answer: "Here's the letter B from a set of two consecutive letters. What's the other letter?"
A and B are just labels for the 2 options present at the start of the exercise. You can't assume you've selected B and then say that the remaining option is either A or C because only A and B existed to begin with (or B and C, whatever the labels are is irrelevant).
To put it another way: if you select an envelope and attribute a dollar value to it (in the Wikipedia article this is $20) and then suppose it's either the higher or lower value, then compare the expected value of switching in each case, the things you're comparing have absolutely no relationship to each other.
If you assume the value you chose was $20, and it's the lower value, then your initial values were $20 and $40, and you should switch. If you assume the value you chose was $20, and it's the higher value, then your initial values are $20 and $10 and you shouldn't switch.
In either case the only relevant piece of information is whether or not you chose the higher or lower value and you can't include all 3 values ($10, $20 and $40) in an "expected value" calculation because only 2 values actually exist.
Actually it becomes even more starkly obvious if you change the dollar value between each statement, eg: assume you chose $20 and it's the higher value. If you switch, you lose $10. But what if you chose $5,000 and it's the lower value? If you switch you'd gain $5,000 so you should always switch because you're only risking a 50/50 chance of losing $10 for a 50/50 chance of gaining $5,000. This is clearly ridiculous!