You aren’t getting enough juice out of the battery.

check the battery terminals and make sure they are clean - if not then you battery is toast.

Once you engine turns over the alternator can provide the juice to keep it running... this is why you can drive somewhere after a jump and shut it off and if you battery is dead, you are stuck.