SharePoint deployment at two scopes(global & webURL) what is the difference between web-application and globally deployed?


SharePoint server 2013 solutions,some solutions are deployed in Globally and some solutions are deployed in web application.

why this happening and what is the difference between globally deployed and web application deployed?please anyone clarify this.Thanks in advance. what is the main difference of globally deployed and webapplication.