Photons are quantum mechanical entities, and so are electrons, atoms and molecules. They obey the rules of quantum mechanics. The photon energy is $h*ν$ where $ν$ is the frequency of the classical electromagnetic light that a large number of such energy photons will built up. See this to understand how photons build up the classical electromagnetic wave
The interaction with solids is also dependent on the quantum mechanical nature of the atoms and molecules in the solid. A solid can have a lattice., a crystal for example.
Photon-lattice scattering can be elastic , and that is when reflections can happen, from the first layer of the lattice.
If the lattice has no energy levels with the energy $h*ν$ that would allow the atoms or molecules or the lattice itself to be excited and absorb the photon, the solid is transparent to the photon.
For both reflection and transparency it is important that the energy of individual photons does not change and also the phase its wavefunction has with all the other photons in the stream. If the phase would be different , as would happen with absorption and reemission , no images could be carried by the light, because reemission has random phases for each individual photon composing the reflected image. Photons that are absorbed get out of the stream.
Note , the quantum mechanical interactions are really happening with the electric fields that atoms and molecules set up, not with individual electrons.