by is a Query Keyword, i.e., it's a keyword only in certain positions within LINQ Query Expressions, in particular only within a group clause.
The by contextual keyword is used in the group clause in a query expression to specify how the returned items should be grouped.