There are many reasons why your tap water could taste bad. It could be because there aren't enough minerals in the water. Or maybe the pipes are old and corroded.
Or maybe it's because you live near a chemical plant. Whatever the reason, you can fix it with a good quality water filter.