There should be two cables in that come out the wall and attach to the existing switch. The brown and blue from the consumer unit will go to the “feed” terminals (Live and neutral respectively)on the new timer, whilst the brown and blue to the immersion will go to the “load” terminals on the timer. This should correspond to what’s on the existing switch.
What you will probably find is that the earths of the two cables are actually run together in the green/yellow sleeving. It’s not easy to see from your pictures but you should see them both together if you look closely. If this is the case then that is good because as alanl says the immersion heater will need to be earthed and these two connected via the terminal on the switch is achieving this.
Now, the timer may or may not have an earth terminal on it. If so, just connect the existing two earths in the yellow/green sleeving into the terminal on the timer – ignore the one in the plastic pattress on the wall.
If there is no earth terminal on the timer, use the terminal in the plastic pattress (the one you’ve highlighted) as the connection point for the earths.
In either case ensure that they are both secure in the terminal as this will be necessary to give good earth continuity all the way from the consumer unit to the immersion heater.
Any questions, just ask.
Rich.