Energy is lost, but not enough to dissipate the wave
As you say, the height increases as the wave slows down in shallower water, and this is so that the total energy transfer is conserved
And, energy is indeed lost through seafloor friction and turbulence .. however, apparently not enough to dissipate the wave
