Because politics decided in smokey back rooms does not result in government “by the people” ? It is considered bribery to get an opponent to drop out of a race by promising them a position in your administration.
It is silly in the case of President and Presidential Running Mate.
I really doubt that if the two got together and decided to team up that it would be illegal. If it really is, then that law should be changed.