If the state is paying $30k to subsidize an in state student and less, if any, on an out of state - there’s your answer.
State and federal governments often fund public schools. In many cases they are cutting back on funding.
So colleges need more revenue. They find it at kids willing to pay more.