Here's why:
* Substitute means to replace something with something else.
* Switch can also mean to replace something with something else.
Therefore, they have a similar meaning in this context.
For example:
* "The coach decided to substitute the injured player."
* "The coach decided to switch the injured player."
Both sentences convey the same idea: the injured player was replaced with another player.