Elections are the local level are considered to be more partisan because political parties tend to have a stronger grip on local politics, and also because it is higher for a non-partisan or disrupting figure to overwhelm the party infraestructure and run as an independent at the local level.
This also causes a higher degree of party loyalty among citizens at the local level.