The short answer is that esters formed during the aging process are what can give a fruity flavor to cheese. That being said, cheese aging is extremely complex and there are many factors involved.