In a sense, the US government does the same thing. In the US tax code, you can can deduct business expenses to reduce taxes — ie, subtract expenses for a corporation you control from your personal income. This has been known be abused, as folks deduct their personal car, house, travel… as a result, if you have a business that goes long enough without a profit, the IRS will look really hard at it to make sure it’s not really leisure.
https://www.irs.gov/pub/irs-utl/irc183activitiesnotengagedin...