They get square watermelons by growing them inside of square glass cases.
That way they can fit easily into a refrigerator, and you can stack things on them. Square watermelons are expensive though (10,000 yen or about $82). Compare that to regular round watermelons which cost about $15-20 in Japan.
Read more at http://www.omg-facts.com/top/4#Iw7pLS3lLU0ydkV3.99