It integrates with Apple's pass system and the app they have to let users collect their cards, passes and tickets in one place (whatever it's called), it's not about creating a PNG.
In some cases, yes, but I've used a digital ticketing system (Ticketmaster) where the barcode changes about every 20 seconds. Short of reproducing that barcode generation algorithm, Claude or Codex wouldn't help.