The "maximum range" given by the manufacturer is not the same as the maximum range of a typical airline flight. An airline flight has to consider additional factors that are not included in the basic payload/range calculations:
Wind - If there is a headwind, the range will be reduced.
Temperature - Above standard (ISA) conditions will reduce performance and range.
Regulations -
Having "just enough" fuel to reach your destination is not a good idea in practice. An airline flight will also add contingency fuel to account for any unexpected conditions, alternate fuel to allow a missed approach at the destination and flying to an alternate airport, and then final reserve fuel. There also needs to be enough fuel to reach a diversion airport in the case of engine failure. MAD-BOS is an oceanic flight, meaning that diversion airport may be hours away, and fuel consumption in this situation becomes higher than normal due to the failed engine and lower altitude required to fly on the remaining engine. All of these factors reduce the actual range capability.
If you look at the generic payload/range diagrams from Airbus, the A321LR (97t MTOW with 2 or 3 ACT) just barely achieves a maximum range of 3,000 NM at max payload. The extra fuel required for the reasons above would require reducing the payload (and therefore revenue) for the flight. The extra range of the A321XLR allows full payload capability while carrying the required fuel.
So to answer the question: no, the A321XLR is not necessary for a route like MAD-BOS, but it is much better suited than the other A321 variants.
Source