The definition is a little loose for my liking, but I believe it's based on 'the last word' in something (eg 'the last word in luxury') being the ideal form of it. The Collins online thesaurus gives 'last word' as a synonym for 'ideal' (although it isn't an exact one) so that may be where the setter got the idea from.