Because that is what you have told it to do. I would suggest you add a debug node (set to display the complete msg object) to the output of the function node just before your mysql node and run your code.
Then look at the output of the debug node and read the 'Help' information of the mysql node to see what you have done.
With one line of code and two images, that is the best I can do to help you at this point.
[This topic has been closed since it is a duplicate]