Got this weird situation on pokerstars tonight.

Cards on board were [6s As Ks 8s] [9c]

Other guy had [Ts Th], I had [5s 2s]. I was all in. The pot went to him saying he won with a flush, Ace high.

Shouldn't the pot have been split instead of going all to him?