gutenberg attributes

From the docs:

If a selector is specified, the source behavior will be run against the corresponding element(s) contained within the block.

You are telling your block to look at the same Element for the value of both your attributes.(The first p tag)

Change the second selector to something like

p:last-of-type

or give your p tags an id.