What they're actually doing is increasing the difficulty for local buyers by increasing demand and pushing up prices, and taking money away from them while simultaneously lining the pockets of existing property owners.
Foreign owners are likely to move at least a portion of this money overseas, which takes it out of the local economy, reduces the ability of residents to innovate by taking financial risks etc etc.