Electronically triggering an iphone touch

I saw this post and was interested in doing something similar, but something that I don't understand is the necessity of using a relay.

https://atmelcorporation.wordpress.com/2014/07/28/playing-timberman-with-arduino/

Why not just stick with the transistor as a switch?

Isolation.