This is a compound sentence because it consists of two independent clauses. "She likes sweets" and "She seldom buys them for herself". But is a conjunction irrelevant for the current state of things. Both sentences can stand on their own and convey meaning which is why it is a compound sentence.