In the original "Legend of Zelda" game, why was the maximum number of rupees set at 255?

Because of the hardware constraints of the Nintendo Entertainment System, an 8-bit unsigned integer was utilized to represent the number in The Legend of Zelda.