The reason for the formal attire is actually more closely tied to tradition, rather than to any aspiration of a sanitary operation. A dissection in those days was not very common. At its core though, you are dealing with a cadaver, a corpse. Even in religiously tolerant Holland, being around the dead was a solemn occasion, and as such, one was expected to dress the part.