Re: at or to?
I wore this when I went to work.
That one is fairly straightforward. In general, however, there is little point in asking why we use certain prepositions in certain phrases. Prepositions are a law unto themselves - in most languages that have them. We watch things on television, the French watch things at the television, and Germans watch things in the television. That's just the way it is.
Please do not edit your question after it has received a response. Such editing can make the response hard for others to understand.