This is because all event types are unified. Here's the full enumeration of the type:
enum class EventType{
KeyDown = sf::Event::KeyPressed,
KeyUp = sf::Event::KeyReleased,
MButtonDown = sf::Event::MouseButtonPressed,
MButtonUp = sf::Event::MouseButtonReleased,
MouseWheel = sf::Event::MouseWheelMoved,
WindowResized = sf::Event::Resized,
GainedFocus = sf::Event::GainedFocus,
LostFocus = sf::Event::LostFocus,
MouseEntered = sf::Event::MouseEntered,
MouseLeft = sf::Event::MouseLeft,
Closed = sf::Event::Closed,
TextEntered = sf::Event::TextEntered,
Keyboard = sf::Event::Count + 1, Mouse, Joystick
};
Everything leading up to Keyboard isn't necessarily in order, and we may be adding new events later, so everything after that point is given the maximum possible value in order to avoid clashing. There aren't necessarily 23 event types here, but sf::Event provides that amount - 1.