You’re 100% right.... for drag racing.
For handling, road racing, and circle track they didn’t always put them all the way to the back if the rules allowed the battery to be moved. Circle Track car often put the battery on left side for more left side weight bias.