Why can the first derivative be treated like a fraction but not the second derivative? Is it because of the chain rule or is it deeper than that?

Hey all,

Hoping I can get some thoughts on this: Why can the first derivative be treated like a fraction but not the second derivative? Is it because of the chain rule or is it deeper than that?

Thanks so much!