Because both of these ideas lead to either better military tactics and philosophical thought which said that conquering another nation is fair and something ok to do. The other thing with both is that they were related to a bigger production of goods among which guns could be found.