The popular tourist destination hopes the tourist fee will deter travelers from acting up.
Source: Bali to Impose Tourist Tax | TravelPulse
While this is a small tax compared to some other countries, the goal is, partially, to discourage poorer travelers in favor of wealthier travelers who stay longer and spend more.