Something placed at each end to hold what lies between. Bookends do nothing to the contents and keep them standing.
Compound of book (Old English boc, originally the beech tree, whose wood carried early writing) and end (Old English ende, a limit); the object is named for holding the books rather than for being one.
Something set at each end to hold what lies between upright — it changes nothing about the contents, only keeps them standing.