Other contributors have said "Did pirates drink rum straight out of the bottle?" is the same question as "Why did pirates drink rum?" If you believe that these are not asking the same thing and should be answered differently, click here
Due to the fact that there was no good way to store water during that period, it would become stagnant. Rum was added to the crew member's water rashness to cover the bad taste. This was known as "Groggy".
My guess is that the majority of the pirates were located in and around the Caribbean and sugar cane was grown on many of the Islands. Rum is distilled from sugarcane, easy access.