Why is this suggested move best

Sort:
goldilocks63

My opponent just moved from c8 to Be6. The Analysis says Be6 is a mistake, Qxg5 is best.  

And never mind - I just figured it out!