A man is holding a child on his shoulders.
A child is riding on a mans shuolders.
Sentence 2 of a child riding on a man's shoulders is a rephrasing of sentence 1.
The man who is holding the child on his shoulders has the child riding his shoulders.
Children often ride, of course, on their parents' shuOlders.