What exactly does the bone do with the X-rays that the skin doesn’t?
The skin’s atoms are too small to experience the photoelectric effect with X-rays. Most X-rays go right through skin and soft tissue. However calcium atoms are large enough to experience the photoelectric effect and thus absorb many of the X-rays. Bones cast a shadow on film, which is how an image of your bones is formed.