Probability of Photoelectric Effect Occuring in the Context of Medical Imaging

I was recently taught that the probability of the photoelectric effect occurring was proportional to Z^3 and E^-3 (where Z is the atomic number, and E is the energy of the photon). My understanding is that the photon's energy must be close to the binding energy of the inner electron to be absorbed, increasing the energy decreases probability because you're getting further from the binding energy value. However, I don't understand how a higher atomic number would increase the probability; I've been told that more tightly bound electrons are more likely to be ejected. Why would that be? Wouldn't tightly bound electrons be difficult to remove?

Thanks for the reply! It might be a weird question, I assume that most people learned the photoelectric effect in terms of KE(of the photoelectron) = hf (incident photon) - work function, but I was told in my medical imaging class that the probability of a photon being absorbed is proportional to Z^3 and E^-3 (atomic number and energy respectively). I'm sure my class talks about the photoelectric effect in terms of non-metal matter (bones have a average Z greater than soft tissue, so bones absorb more photons), while the KE=hf-(work function) equation applies to metals with "electron seas". Also, my class talks about the photoelectric effect in terms of ejecting the inner electron.

According to the wiki book below, the energy of a photon must be equal or greater than the binding energy to eject the inner electron. Higher energies decrease the probability of interaction. The book never explained it but I assume that a beam of higher energy photons will have less photons that can be fully absorbed by the electron, as most photons will be too high in energy.

What I don't understand is that the wiki book says that the more tightly bound an electron is (high Z), the higher the probability of a photon interacting with it. This contradicts the first point (that the energy of a photon must be equal or greater than the binding energy of the electron) - a higher Z means higher binding energy so less photons are able to eject an electron.

It does make a little sense if you have a very high energy beam and you find a material with a high binding energy to match the beam, but if you keep the energy of the beam constant, I would assume that increasing the Z number would decrease probability of interaction.