There are many theories, the more mundane of which are possible worship sites or astronomical observatories. The issue is that no biological remains have ever been found in a pyramid, including those most recently discovered (over 100 by now throughout Egypt) that were intact and not disturbed by grave-robbers.