It's probably due to server side rendering and rehydration. The rehydration use server side component state to override DOM state.