Writing is building. Like Lego. You're building with pieces of information.
You take the pieces, and join them together with connectors.
Prepositions make good connectors, because they give additional information.
In this sentence, "in" is a connector.
Pay attention to connectors in your reading.