A Service is a program that interacts with the machine according to different rules from a standard application. A standard application is able to run according to the limitations of the user who is logged in at the time. A service by default runs under a special account known as the local system account, which normally has many restrictions in terms of file permissions and the like.
A service runs when the machine is powered on, you do not need to be logged in for the service to run.