The comma in the second sentence was mandatory in the old orthography before 1996 but is optional in the current orthography. It introduces an infinitive clause. See Duden D114-117.
The same would apply to the first sentence if it was not for the verb scheinen which is never used with comma (Duden D117).
For further reference, see here.