Even tourists that never leave a resort during their stays, they consume foods, water, electricity, etc and sll of that pays taxes. Despite it's common to hear people say they don't see their taxes given back in government services/infraestructure, but in reality the money is seen. Most of the reason they may not be in the quantity most would like is due to the country not producing enough resources. Can't expect the DR to be like the government of New York when the DR doesn't pay taxes like New York, it doesn't have sn economy lime New York and, quite frankly, it isn't New York. New York has a lot more people than the DR and New York's government (state, county and municipality levels) gets more funds per resident than does the DR government. People often talk about things like corruption, but even if corruption is fully eliminated it will not have much great effect since the real issue is wealth generation.
Also, most of the foods in Dominican resorts come from Dominican farms. That is usually not the case in the Caribbean Islands where most of what you see in resort's buffet and restaurant is imported. The agricultural sector is basically producing food for the 10 million that live in the DR plus the 7 million or so tourists and it still has enough excesses to export. The impact isn't tiny and no time was this more clear to large farmers than during Covid.