A child making a sand castle on the beach.
A child on a beach.
One must be on a beach in order to be making a sand castle on the beach.
Sand castles are usually made at the beach, so it stands to reason that this child is at the beach.
The child making sand castle is on the beach