What are schnauzers bred for?

schnauzers come in three diffrent sizes.them being minture,standard and giant
the miniture(my favourite) was bred in Germany for ratting on the farms.the standered work as a cattle guard and the giant kept guard for foxes and somtimes wolfes witch they would have a go at fighting but only several would deafeat a wolf even with there unbeliveble strength