why do they call it a wake at a funeral
Wake (ceremony)
While the modern usage of the verb wake is "become or stay alert", a wake for the dead harks back to the vigil, "watch" or "guard" of earlier times.