The box is defined as zero potential energy inside a certain interval and infinite everywhere outside that interval .

The well has zero potential energy inside a range and infinite everywhere outside that range .
