"by" has many uses. One of its uses is to mark the agent in a passive sentence. Another meaning is closer to "because of", which we see in He was shot dead by enemy fire.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.