Sorry I got it wrong. When I use the rectangle tool or ellipse tool, once drawn in the layers panel, photoshop applies a layer mask to the layer. When I first started photoshop, photoshop never put a layer mask on the layer. I want to know how to stop photoshop from applying a layer mask to the rectangle I have drawn.
So when I draw a rectangle, the layer appears in the layer panel without a layer mask.