From the Super Mario Wiki
Bowling Ghosts are fairly common. They resemble Gold Ghosts, but are yellow. Bowling Ghosts haunt hallways instead of rooms and are usually found along with Ceiling Surprises and in later areas Purple Bombers. They throw bowling balls at Luigi, trying to trip him. Thety are one of the weakest ghosts in the game as they have zero HP. Even if the player wards them off with the Poltergust 3000 or an element, they eventually return. They are gone when an area is finished, just as any other ghost.