SpongeBob SquarePants airs on Nickelodeon because it was created and produced by Nickelodeon Animation Studio, owned by Paramount Global (formerly ViacomCBS).
Disney Channel, owned by The Walt Disney Company, produces its own original programming. Networks typically air content they own or license exclusively. Nickelodeon retains full rights to SpongeBob, making it a flagship property for their brand.