He wasn't written off the show or replaced, like some other characters. He simply aged out of the role as the series progressed.
It's worth noting that Laborteaux was known for his acting skills and his portrayal of Albert was a beloved aspect of the show. He went on to have a successful career after *Little House*, appearing in other TV series and films.