Slicing COSMOS with SC4K: the evolution of typical Lyα emitters and the Lyα escape fraction from z ~ 2 to z ~ 6