Seems reasonable to me. Housing should be for housing people, not a speculative financial investment. It's reasonable for cities to ask that people show that they have some skin in the game, that they're living, working, paying taxes and contributing to and enhancing the community.
If they own a house, they are paying taxes, so they do have significant skin in the game. They pay property taxes despite not using the local schools or most other city services. As far as not allowing housing as a speculative financial investment, there are some significant unintended consequences there.
So it's not like the foreign investors are beneficial in any way, besides maybe paying their bit of water/electricity/police costs (and if they only pay their share, then why bother accomodating all the volatility to house prices they bring?)