I'm thoroughly annoyed by Safari refreshing tabs randomly, too. But I always assume its because of memory restrictions, and that this content has been evicted from memory to make room for web pages that I open in new tabs.
Memory is the root cause but it's more like they didn't implement a paging virtual memory system in the original iPhone os until iOS4 which allows for the persistance.