Vaccines are subject to stringent safety standards since they’re administered to healthy people. The age limit may suggest that at the time of the recommendation, in the relevant jurisdiction, the manufacturer had not studied its safety and efficacy in >40 year olds.
(I also don’t think it’s an age limit as much as the upper end of a recommendation.)