(1) "In", when used like this, is called a grammaticised preposition. It's called that because its use has nothing to with meaning, but is dependent entirely on rules of grammar. e.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.