I asked this question on the English Language Learners section of Stack Exchange, in the comments after my original question had been answered. The person who answered my original question promised to answer my other question I made in the comments, which never happened. So I will be asking my question here instead:
When I say,
"This tool was made for building things."
"This gun is used for protecting myself from threats."
The for gerund implies something that will/was going to happen in the future.
But when I say,
"He was arrested for murdering his colleague."
"He was scolded for having spilled his drink."
The for gerund means that one thing happened because of another; something like a cause-and-effect.
Can someone explain why this happens?