You played it well and he got lucky. Since the 78 had chips, I guess he felt like playing hand that wasn't AK or AQ.