This is usually called the broken window fallacy, from an essay by Bastiat in 1850.
https://en.m.wikipedia.org/wiki/Parable_of_the_broken_window
https://en.m.wikipedia.org/wiki/Parable_of_the_broken_window
This isn't totally farfetched: in some countries if you own your house you pay tax on the rent you would have paid to yourself [0]. Taxing someone for feeding or educating himself seems like a small and natural next step.