Where the size of a video comes from
A phone records video at a high bitrate so that nothing is lost: a minute of 4K can take several hundred megabytes, and even 1080p at 60 frames per second fills storage fast. Screen recordings from OBS or QuickTime and exports from editors are often just as generous. That is ideal for editing and wasteful for sending, which is why so many messengers, email services and upload forms refuse the file.
Compression trades bits for a picture that looks almost the same. This tool does three things. It lowers the resolution to the setting you choose, it caps the frame rate at 30, which halves the work for 60 fps recordings without a visible difference for people talking, and it re-encodes with H.264 at a constant quality level instead of a fixed bitrate, so simple scenes get small and detailed ones keep their detail. A lecture or a screen recording typically shrinks by well over half; footage that was already compressed by a messenger shrinks much less.