Answer by taking a quote from the following article:

Pete Maravich was born to Petar "Press" Maravich (1915-1987) and Helen Gravor Maravich (1925-1974) in Aliquippa, a steel town in Beaver County in western Pennsylvania, near Pittsburgh. Maravich amazed his family and friends with his basketball abilities from an early age. He enjoyed a close but demanding father-son relationship that motivated him toward achievement and fame in the sport. Maravich's father was the son of Serbian immigrants and a former professional player-turned-coach.

The Utah Jazz began play in the 1979-80 season. Maravich moved with the team to Salt Lake City, but his knee problems were worse than ever. He appeared in 17 games early in the season, but his injuries prevented him from practicing much, and new coach Tom Nissalke had a strict rule that players who didn't practice were not allowed to play in games. Thus, Maravich was parked on the bench for 24 straight games, much to the dismay of Utah fans and to Maravich himself. During that time, Adrian Dantley emerged as the team's franchise player.  The Jazz placed Maravich on waivers in January 1980. He signed with the Celtics, the top team in the league that year, led by rookie superstar Larry Bird. Maravich adjusted to a new role as part-time contributor, giving Boston a "hired gun" off the bench. He helped the team post a 61-21 record in the regular season, best in the league. And, for the first time since his early career in Atlanta, Maravich was able to participate in the NBA playoffs. He appeared in nine games during that postseason, but the Celtics were upended by Julius Erving and the Philadelphia 76ers in the Eastern Conference finals, four games to one.  Realizing that his knee problems would never go away, Maravich retired at the end of that season. The NBA instituted the 3-point shot just in time for Maravich's last season in the league. He had always been famous for his long-range shooting, and his final year provided an official statistical gauge of his abilities. Between his limited playing time in Utah and Boston, he made 10 of 15 3-point shots, giving him a career 67% completion rate behind the arc.  During his ten-year career in the NBA, Maravich played in 658 games, averaging 24.2 points and 5.4 assists per contest. In 1987, he was inducted into the Naismith Memorial Basketball Hall of Fame, and his No. 7 jersey has been retired by both the Jazz and the New Orleans Pelicans, as well as his No. 44 jersey by the Atlanta Hawks.

Did his knee problems influence his decision to leave?
his injuries prevented him from practicing much, and new coach Tom Nissalke had a strict rule that players who didn't practice were not allowed to play in games.