Opposition only happens with planets that are in a 'superior' position to Earth. That means planets that are farther from the Sun than the Earth. Because Venus and Mercury are closer to the Sun than the Earth, they are 'inferior' and they can never be in opposition.