If the temple was a large one (as most in the "New Kingdom" were), the Pharoah in charge of said temple would have to employ many people to upkeep them. Not only that, but the larger temples also housed smaller buildings in its parameters. People were paid to run these temples, which also doubled as a sort of Commerce area. However, the temples focused more so on religion and beliefs.