I can’t say that I am surprised.
There are a lot of people who think of Kansas as a very conservative Red State, but that isn’t my impression. It is more of a moderate Republican state. Kansas has a Democrat governor who defeated Kris Kobach by 5 points in the 2018 midterms. It is one of the states where Country Club Democrats in places like Johnson County, KS have been switching parties in the Trump era.
Note: Kobach won the GOP nomination for AG there last night. It wasn’t a total loss.