Investors & landlords

Typically, realized capital gains are taxed by the state in which you are a resident at the time of the stock sale.  Why do you think you have to do some allocation?