Strawberries appear to have seeds on the outside because those yellow specks are actually tiny fruits called achenes, each containing a single true seed, while the red fleshy part is a swollen receptacle from the flower.
This unique structure evolved to attract animals that eat the berry and disperse the achenes easily.