When movement along a fault moves the seafloor upward, water is also pushed upward and becomes tsunami waves. As the waves approach shallower water, they become higher.
NOAA