Yes, there is a valid reason... some people actually post their logs online. The search engines pick it up and it stays persistant until they clean their logs (which may be never).
I've used similar techniques (but XSS) by modifying the user agent to pop an alert box where it showed up to alert administrators of the issue. Unfortunately I stumbled upon an SQL injection issue once (the quotes I guess) and it actually brought the server down (oops!). After that I stayed clear of injecting XSS via user agents.
- RSnake
Gotta love it.
http://ha.ckers.org