Yamaha Fazer Punch?

Hello friends, I would have a question, I would like to buy a Yamaha Fazer with year of construction 2006, 72kw 98ps, I saw during the visit that something was glued or sealed, on the picture below you can see that, my question is, what was done and why? Can’t you change the lid instead of such a puff of my opinion? And what is the lid for? Thanks in advance! Don’t know me about motorcycles like that.