In the summer of 1964, teenage friends Ronnie Van Zant, Bob Burns, Allen Collins, Gary Rossington, and Larry Junstrom formed the earliest incarnation of the band in Jacksonville, Florida as My Backyard. The band then changed its name to The Noble Five. The band used different names before using One Percent during 1968.  In 1969, Van Zant sought a new name. The group settled on Leonard Skinnerd, a mocking tribute to physical education teacher Leonard Skinner at Robert E. Lee High School. Skinner was notorious for strictly enforcing the school's policy against boys having long hair. Rossington dropped out of school, tired of being hassled about his hair. The more distinctive spelling "Lynyrd Skynyrd" was being used at least as early as 1970. Despite their high school acrimony, the band developed a friendlier relationship with Skinner in later years, and invited him to introduce them at a concert in the Jacksonville Memorial Coliseum. Skinner also allowed the band to use a photo of his Leonard Skinner Realty sign for the inside of their third album.  By 1970, Lynyrd Skynyrd had become a top band in Jacksonville, headlining at some local concerts, and opening for several national acts. Pat Armstrong, a Jacksonville native and partner in Macon, Georgia-based Hustlers Inc. with Phil Walden's younger brother, Alan Walden, became the band's managers. Armstrong left Hustlers shortly thereafter to start his own agency. Walden stayed with the band until 1974, when management was turned over to Peter Rudge. The band continued to perform throughout the South in the early 1970s, further developing their hard-driving blues rock sound and image, and experimenting with recording their sound in a studio. Skynyrd crafted this distinctively "southern" sound through a creative blend of blues, and a slight British rock influence.  During this time, the band experienced some lineup changes for the first time. Junstrom left and was briefly replaced by Greg T. Walker on bass. At that time, Ricky Medlocke joined as a second drummer and occasional second vocalist to help fortify Burns' sound on the drums. Medlocke grew up with the founding members of Lynyrd Skynyrd and his grandfather Shorty Medlocke was an influence in the writing of "The Ballad of Curtis Loew". Some versions of the band's history state Burns briefly left the band during this time, although other versions state that Burns played with the band continuously through 1974.  The band played some shows with both Burns and Medlocke, using a dual-drummer approach. In 1971, they made some recordings at the famous Muscle Shoals Sound Studio with Walker and Medlocke serving as the rhythm section, but without the participation of Burns. Medlocke and Walker left the band to play with another southern rock band, Blackfoot. When the Lynyrd Skynyrd made a second round of Muscle Shoals recordings in 1972, Burns was once again featured on drums along with new bassist, Leon Wilkeson. Medlocke and Walker did not appear on any album until the 1978 release of First and... Last, which compiled the early Muscle Shoals sessions. Also in 1972, roadie Billy Powell became the keyboardist for the band.

Answer this question "Why were they mocking the teacher?" by extracting the answer from the text above.
Skinner was notorious for strictly enforcing the school's policy against boys having long hair.