The first script has jQuery as a dependancy, if another script also has jQuery as a dependancy, and said script loads in the head, then as a result, so will yours.
The second script does not set the in footer parameter to true, so naturally it appears in the head(the third paramter is set to true, which is for dependancies – and the fourth which is the with footer paramter is an empty string).
thanks for the explanation!