To quantise our theory, we need to input the uncertainty principle. Again, parallels help:
.
Just like we cannot measure momentum and position simultaneously and to arbitrary precision, we cannot determine the field value and its time derivative to arbitrary precision either. So, we promote to operators and impose a form that satisfies commutation relations.