The most fitting answer is:
a. They wanted to keep up with the other European traders.
The Dutch were involved in the competitive trading environment of West Africa, where firearms were valuable for both trade and providing local rulers with military power. Selling firearms allowed them to establish and maintain their trading relationships in the region and compete effectively with other European powers.