Sedimentary rocks don't necessarily make fossils. Although when animals die on top of the rocks and are never moved, blown away, etc they can get trapped under the growing rock. Which is why fossils are often found in sedimentary rocks.
The neutron/proton ratio for a certain element must fall within a certain range for the element to be stable. That’s why some isotopes of an element are stable and others are radioactive.