Here's why:
* Prepositions show the relationship between a noun or pronoun and another word in the sentence.
* "By" indicates location, direction, means, or agency.
Here are some examples:
* Location: The book is by the window.
* Direction: She walked by the store.
* Means: He traveled by train.
* Agency: The house was built by skilled craftsmen.