I tried Wikipedia but it doesn't explain why functions are called functions.
The reason why I'm asking is because this word just doesn't make any sense for what it does.
If we were to reinvent all the words that don't make sense, and they become normal in a given culture, communication would be far more efficient and clear.