It depends. Can you clarify why you believe you have to file in another state?
Generally, you’ll need to file a nonresident state return if you made money from sources in a state you don’t live in.
Some examples are: