It may seem strange to subtract P(A and B), but if you'll notice each of P(A) and P(B) includes P(A and B) (draw Venn diagrams to help see this), then you realize P(A and B) is counted twice. One P(A and B) must be subtracted to compensate for this overcounting.