if something is formed from something else then that something else becomes that something & sedimentary rocks are formed by sediment compacting together ->  sediment becomes sedimentary rock by sediments compacting together  sediment becomes sedimentary rock by sediments compacting together & sedimentary rock is a kind of rock -> sediment becomes a kind of rock by sediments compacting together