SAM uses a CLIP-H as an image encoder, a very large encoder that obviously does not fit in 8 MB.
Also read the "Efficient & flexible model design" section on the page.
Also in the FAQ: "How big is the model?
The image encoder has 632M parameters. The prompt encoder and mask decoder have 4M parameters."