Q:

How do they put the air in tennis balls

Answer

They build the tennis ball around the air. The tennis ball is made in 2 halves & heat wielded together to form the finished ball.