I guess he thought his flush draw on the turn was live. I wouldn't say either play was particluarly bad, I wouldn't have invested that much with either hand on that board but this wasn't terrible by you or him.
Note that this guy is a calling station and start value betting him to death in future hands.